Title: Avoiding 301 redirects
Last modified: August 20, 2016

---

# Avoiding 301 redirects

 *  [johntaylor74](https://wordpress.org/support/users/johntaylor74/)
 * (@johntaylor74)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/)
 * 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?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Andrew Bartel](https://wordpress.org/support/users/andrew-bartel/)
 * (@andrew-bartel)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/#post-3139716)
 * 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/](http://www.billerickson.net/code/how-to-handle-redirects-in-wordpress-via-otto/)
 *  Thread Starter [johntaylor74](https://wordpress.org/support/users/johntaylor74/)
 * (@johntaylor74)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/#post-3139736)
 * 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.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/#post-3139778)
 * If you use relative url references in mod_rewrite, the redirect returns 200. 
   This is how permalinks work.
 *  Thread Starter [johntaylor74](https://wordpress.org/support/users/johntaylor74/)
 * (@johntaylor74)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/#post-3139817)
 * 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
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/#post-3139818)
 * Short answer: don’t.
    WordPress’ handling of relative urls is unpredictable at
   best.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Avoiding 301 redirects’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 5 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/avoiding-301-redirects/#post-3139818)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
