If you used the default permalink structure,
you’d have something similar to:
/%year%/%monthnum%/
%postname%/
now say you want to get rid of the dates
(maybe seo-wise driven?)
you’d have
/%year%/%postname%/
But now all your posts (and post slugs) are outdated,
thus returning 404 or if you got the right
redirection rules return you to some error document.
That’s exactly what I did and troubled with.
Now there is this guy scotty from fucoder.com
who is a real genius.
He told me to solve this problem by
by adding an extra Mod_Rewrite rule before the rules
generated by WordPress.
In my case:
RewriteRule ^([0-9]{4})/
([0-9]{1,2})/([0-9]{1,2})/
([^/]+)/?$ /$4/ [L,R=301]
He told me to put that right after RewriteBase
to install this redirection and it worked wonders.
Thanks scotty!
Vielleicht auch fuer einige interessant ist dieser Artikel ?ber das Aendern von Permalinks in Wordpress (alte uri /archiv/ neue /)
If you enjoyed this post, make sure you subscribe to my RSS feed!

h4x3d.com does not host any illegal content. Links/Files referred to are for educational purposes only.



