• Resolved whybonus

    (@whybonus)


    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/$1

    but 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/$2

    none 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ll post here too, in case somebody has the same problem:

    Put this in your .htaccess:
    RedirectMatch permanent ^/([0-9][0-9])/(.*)$ /2006/$1/$2

    Thread Starter whybonus

    (@whybonus)

    Indeed, redecs was the one who helped me, offering the solution posted here.

    And the best thing about this is that even google recognize the redirection of permaionks and it will not report broken links or error 404 (not found). Thank alot redecs, again. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem redirecting old pages’ is closed to new replies.