WordPress.org

Ready to get started?Download WordPress

Forums

Avoiding 301 redirects (6 posts)

  1. johntaylor74
    Member
    Posted 1 year ago #

    I'm about to start converting an old static site to a WordPress based site, now I want to keep all the existing URL's the same rather than 301 redirect them all (from an SEO standpoint I would lose a bit of link juice using 301's).

    Is there a hack about to do this?

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    You could handle it from the htaccess file. How big of a site are you talking about?

    Alternatively, you can use redirect_canonical filter as described in this post: http://www.billerickson.net/code/how-to-handle-redirects-in-wordpress-via-otto/

  3. johntaylor74
    Member
    Posted 1 year ago #

    I know I can handle it with the htaccess file, however this would mean using 301 redirects - I do not want to use 301 redirects, I want to keep the url structure the same as it currently is.

  4. bcworkz
    Member
    Posted 1 year ago #

    If you use relative url references in mod_rewrite, the redirect returns 200. This is how permalinks work.

  5. johntaylor74
    Member
    Posted 1 year ago #

    How does one go about using relative url references?! Any links you can point me at?

    Only need to use this on Pages I think

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Short answer: don't.
    WordPress' handling of relative urls is unpredictable at best.

Topic Closed

This topic has been closed to new replies.

About this Topic