Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm moving a site from static to Wordpress where all the pages in the old site were XXX.html. This has gone ok as I included a Wordpress plugin to handle the renaming of pages/posts to .html. I was wondering what I should do with pages that I don't plan to migrate. For example I combined their old location and contact pages into one page in Wordpress. I'd like to redirect the old location page to the new page on Wordpress. Is there a plugin for that? I wasn't able to find something or I was searching the wrong way. I read others suggest using 301 redirects, is that the best way? Thanks!

share|improve this question
If you don't have access to the server root the rewrite control plugin will allow you to modify the htaccess file. – toomanyairmiles May 20 '12 at 13:17
up vote 3 down vote accepted

Yes, using 301 redirect statement in .htaccess file is the best way (on Linux hosts).

Add the below statement in the .htaccess file in your WordPress installation's root folder.

Redirect 301 /location.html http://www.yourdomain.com/contact.html

Replace these names with actual names from your site:

BTW, you don't need a plugin to handle the renaming of pages/posts to .html. You can set this up by setting the -
Dashboard > Settings > Permalinks > Custom Structure

I wouldn't recommend using a plugin for these simple requirements.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.