Title: Complete redirect
Last modified: August 19, 2016

---

# Complete redirect

 *  [bogdan2901](https://wordpress.org/support/users/bogdan2901/)
 * (@bogdan2901)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/complete-redirect/)
 * Well….i’m using wordpress on a blog, but i want to move it to a new domain. And,
   i want to make a complete redirect…. Eq:
 * old.com/category1/first-post.html to
    new.com/category1/first-post.html
 * I’ll put WordPress on the new domain, the xml file with posts, and i’ll put on
   the new blog the permalinks from the old blog…. And…i want to have the same results
   in google, with the new adress. All the links will be at same, just the domain
   will be different…. Any ideas ?
    I found on google tutorials about 301 redirect,
   but i didn’t find a way to redirect ALL old adresses to the new adresses….. Is
   it a solution to put into the WP header redirect this: <? Header( “HTTP/1.1 301
   Moved Permanently” ); Header( “Location: [http://www.new.com&#8221](http://www.new.com&#8221););?
   >
 * Replacinf, of course, new.com with my new adress….
 * Please help ! Have a nice day !

Viewing 1 replies (of 1 total)

 *  [Gerald Yeo](https://wordpress.org/support/users/geraldyeo/)
 * (@geraldyeo)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/complete-redirect/#post-1299389)
 * If you’re on a linux server, you can try doing a redirect using the .htaccess
   file.
 * Try adding this to the top of your .htaccess file.
 *     ```
       Options +FollowSymLinks
       RewriteEngine on
       RewriteCond %{HTTP_HOST} ^old.com [NC]
       RewriteRule ^(.*)$ http://new.com/$1 [L,R=301]
       ```
   
 * Apache mod_rewrite must be enabled for this to work.

Viewing 1 replies (of 1 total)

The topic ‘Complete redirect’ is closed to new replies.

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [Gerald Yeo](https://wordpress.org/support/users/geraldyeo/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/complete-redirect/#post-1299389)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
