Support » Fixing WordPress » htaccess redirect/rewrite after changing permalink struture

  • Martin

    (@astronaut123)


    After a relaunch of a pretty good linked website I changed the permalink structure for some good reasons from this:

    http://www.***.org/blog/2014/06/04/foo

    to this

    http://www.***.org/foo

    Unsurprisingly all the backlinks in Google, Google plus etc. are now redirecting to the 404 error page.

    Is there any chance to write a line into the htaccess file which looks more or less like this?

    Redirect 301 /blog/[yyyy]/[mm]{[dd]/foo /foo

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • That is because you missed /blog in your links .. if you have moved wordpress to different directory then follow this

    http://codex.wordpress.org/Moving_WordPress

    And you dint say if you can see the links by yourself working or not ?

    try and see the old links

    Martin

    (@astronaut123)

    That’s not the point. I wrote I changed the permalink structure for good reasons and I certainly know about this basic things like moving a WordPress installation.

    All I want is that search queries with the old url structure are redirected via htaccess to the page with the new url structure.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess redirect/rewrite after changing permalink struture’ is closed to new replies.