WordPress.org

Ready to get started?Download WordPress

Forums

htaccess Redirect Not Working??? (3 posts)

  1. jama
    Member
    Posted 8 years ago #

    I am having difficulty redirecting a couple of posts to new entries. Here is the history.

    I have made posts to my blog and for some reason the entries have been saved and published with a different post name than the one in the title. Looks like this may have happened when I have saved a post as a draft with either a temporary title or the post id number.

    I only just noticed this and I have gone back in to the database and edited each of the entries. This has meant that all links on search engines, technorati etc are wrong for these posts. People are still trying to find these posts, so I have tried to do a redirect in htaccess but it is not working, extra stuff is getting added to the URI

    Here is an example from the htaccess,

    redirect 301 /2005/10/06/dd/ http://www.myblog.com/2005/10/06/double-dutch/

    And the resultant url

    http://www.myblog.com/2005/10/06/double-dutch/?year=2005&monthnum=10&day=06&name=dd&page=

    Because I am using the optimized permalink structure I think this is what is effecting it but I do not know how to get around it. Any ideas??

  2. HustleTurtle
    Member
    Posted 8 years ago #

    im not that experience, but there is a bug on the permalinks

    if you edit the post title name, it always keep the old name on the permalink.

    just to comment, it probably wont answer your concern.

  3. jama
    Member
    Posted 8 years ago #

    Hi thanks for the reply. Well the permalink name is actually changed to what I want it to be internally. If you use the links on the site everything is OK. It is only when someone is using the old link from an external source. I can't get the redirect to work. Everthing I have read indicates I am using the correct code in my htaccess (I am no expert mind you) but there is stuff getting added on to it. More reading to do...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags