Title: .htaccess redirection
Last modified: August 19, 2016

---

# .htaccess redirection

 *  [mystifier](https://wordpress.org/support/users/mystifier/)
 * (@mystifier)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/htaccess-redirection-2/)
 * I am migrating an HTML website to WP. The existing website has good search-engine
   ranking and many bookmarked pages.
 * Can some kind soul tell me what to do in an .htaccess to build a table of redirects.
 * eg.
 * mysite/page1.html -> mysite/?p=10
    mysite/page2.html -> mysite/?p=11 … mysite/
   pageX.html -> mysite/?p=XX
 * Thanks

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/htaccess-redirection-2/#post-1414343)
 * [http://www.javascriptkit.com/howto/htaccess7.shtml](http://www.javascriptkit.com/howto/htaccess7.shtml)
 * a plugin might be easier if you have a lot of pages
    [http://wordpress.org/extend/plugins/redirection/](http://wordpress.org/extend/plugins/redirection/)
 *  Thread Starter [mystifier](https://wordpress.org/support/users/mystifier/)
 * (@mystifier)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/htaccess-redirection-2/#post-1414346)
 * Thanks samboll, I think I have figured it out now.
 *  [mrgaric](https://wordpress.org/support/users/mrgaric/)
 * (@mrgaric)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/htaccess-redirection-2/#post-1414400)
 * I am trying to do this with an aliased domain. I can’t seem to get it to work.
   Is it possible this is because of something my hosting company has done on the
   server to prevent people from doing it?
 *  [mrgaric](https://wordpress.org/support/users/mrgaric/)
 * (@mrgaric)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/htaccess-redirection-2/#post-1414754)
 * RewriteEngine On
    Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST}
   ^newdomain\.?com [NC,OR] RewriteCond %{HTTP_HOST} ^www.newdomain\.?com [NC] RewriteCond%{
   REQUEST_URI} !/newdomain/ RewriteRule ^(.*)$ newdomain/$1 [L]

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

The topic ‘.htaccess redirection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [mrgaric](https://wordpress.org/support/users/mrgaric/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/htaccess-redirection-2/#post-1414754)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
