problem redirecting old pages
-
A month ago I’ve changed my permalinks from /%monthnum%/%postname%/ to /%year%/%monthnum%/%postname%/ because i realised that next year nobody will know wich posts are from 2006 or 2007.
Now I saw that google shows me about 85 not found links, the old ones.
My problerm is that the old links are redirected to index insteed of to the new ones. I want to make that possible.I tried to change the .htaccess file and I putted a few more lines like
RewriteRule (/06/.+) /2006/$1
or
RewriteRule (/06/.*) /2006/$1but it didn’t work. In the first place i tried something like
RewriteRule /([0-9][0-9])/(.+) /2006/$1/$2
and
RewriteRule ^/([0-9][0-9])/(.+)$ /2006/$1/$2none of them worked. if I’m writinghttps://de-ce.nimic.org/10/pentru-persoanele-cu-suflet
I get the index, not https://de-ce.nimic.org/2006/10/pentru-persoanele-cu-suflet/ like it should afer the changes.
I tried to put my rules in the .htaccess before the wordpress ones and after, the same result.
Any ideea? What I did wrong?
- The topic ‘problem redirecting old pages’ is closed to new replies.