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!
Related posts:
- SEO: Wordpress Search with Permalink structure Ever wondered how you could transfer any searches from ?s=TERM...
- Wordpress × / x Problem If you were wondering what turns your x?s into these...
- Aviator movie review (german) 11 oscar nominierungen........ 3 goldenglobes........ das ist also aviator... hmmm....vielleicht...
- Duplicate entry ?0′ for key 1 1. Go into your phpMyAdmin panel. 2. For each...
- Redirect plugin http://urbangiraffe.com/plugins/redirection/ The best of the best available for free!...
Tagged with: code • modrewrite • permalinks • seo • wordpress




















No comments
Jump to comment form | comments rss [?] | trackback uri [?]