WordPress.org

Ready to get started?Download WordPress

Forums

Redirect My old Feed links! (8 posts)

  1. enblogopedia
    Member
    Posted 7 years ago #

    Hi I changed my old Permalink structure from
    /2006/01/12/what-ever/ to /what-ever/

    with a plugin...and everything is working just fine. But now..my old feeds links are not directing to the new structure, means:
    /2006/01/12/what-ever/feed/ is giving me an error
    and I want it to be /what-ever/feed/

    Note that my .htaccess file in the root directory..and it`s direct to the blog automatically (i.e RewriteRule . /index.php [L])

    What should I do, and in which line should I put the new redirecting command(before after RewriteRule . /index.php [L]) ?!!
    Thank you

  2. enblogopedia
    Member
    Posted 7 years ago #

    Also I wrote in a past thread...(where I was asking for directing...) and I wrote an example link with my actuall link..just like
    http://www.mysite.com/whatever/ ..and now google are counting this as a link and giving me a 404 error!!! what should I do?

    please try to edit the post that cause the problem here.

  3. enblogopedia
    Member
    Posted 7 years ago #

    Up..

  4. enblogopedia
    Member
    Posted 7 years ago #

    Bump!

  5. enblogopedia
    Member
    Posted 7 years ago #

    Bump :(

  6. Sam_a
    Member
    Posted 7 years ago #

    It sounds like you changed your permalink structure from /yyyy/mm/dd/postname to /postname?

    I'm not very good at rewrite rules but I think you need something like this, *before* any of Worpress's rules:

    RewriteRule ^[0-9]{4}/[0-9]{2}/([^/]+/feed/?.*) $1 [R=301]

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    If you're going to use [R=301], then make it into [R=301,L]. Otherwise WordPress's rules may break your redirect.

  8. enblogopedia
    Member
    Posted 7 years ago #

    Thanks Guys!!!
    I tested it and it works!
    Hope that all 404 will disappear now!

Topic Closed

This topic has been closed to new replies.

About this Topic