WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting URL without postID (6 posts)

  1. Paul Sutherland
    Member
    Posted 2 years ago #

    I have a news blog, skymania.com, with more than 800 posts. Last year, to suit the requirements to get accepted as a Google News source, I adapted the permalink structure of domainname+postname to include also the post ID number.

    This works well within the normal operation of the database. However, I have hundred of posts with links in the stories to "domainname/postname" which now take take readers to a 404 not found page. I have included a Google search box in this which is automatically filled with the fault link and which they can then use to find the correct link in a flash. However, is there a way to get WordPress to do this automatically, i.e. read the URL without the post ID and then find the post with the post ID?

    e.g. http://www.skymania.com/wp/2008/04/here-comes-solar-tsunami.html
    needs to redirect to
    http://www.skymania.com/wp/2008/04/here-comes-solar-tsunami.html/578/

    Paul

  2. dannymoe34
    Member
    Posted 2 years ago #

    wordpress need to redirect it automatically but there is bug on version 3.8 http://core.trac.wordpress.org/ticket/21020

  3. Paul Sutherland
    Member
    Posted 2 years ago #

    Thanks, Danny. I thought it odd that I hadn't noticed the problem before. Let's hope they can fix this soon!

  4. dannymoe34
    Member
    Posted 2 years ago #

    somone posted a fix for this on the ticket, anyone tried it?

  5. Paul Sutherland
    Member
    Posted 2 years ago #

    I tried, but it didn't work for me.

  6. dannymoe34
    Member
    Posted 2 years ago #

    It doesn't work for me too. It's really a big problem but nobody help here

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags