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 have my wordpress installation on mywebsite.com/blog

I now want to turn my entire mywebsite.com site into a CMS by use of the Wordpress CMS, whilst still maintaining /blog as the blog area.

Rather than exporting my blog posts, then creating a new WP installation on the top-level directory mywebsite.com and then importing my blog posts.. is there an easier way to do this with use of the existing WP installation?

If it's easier to transfer the files via FTP from /blog/ into the top-level and then adjust the wordpress URL settings that's be amazing! I just don't know how to go about the URL settings side of things..


share|improve this question

migrated from stackoverflow.com Oct 21 '11 at 17:31

This question came from our site for professional and enthusiast programmers.

This is better suited for webmasters.stackexchange – serk Oct 21 '11 at 2:40

Read this http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

Follow the pre-existing subdirectory instructions.

share|improve this answer

The process itself isn't that hard. In your WordPress General settings you will have to change site address to the new directory. I am assuming this will be your root directory (http://yoursite.com).

After that, copy your index.php and .htaccess from the existing WordPress directory (http://yoursite.com/blog) into your root directory. Make sure you copy these, as opposed to moving them.

Open the new index.php (the one in your root directory) in an editor and change require('./wp-blog-header.php'); to require('./blog/wp-blog-header.php');

You will still login with the old URL, http://yoursite.com/blog/wp-admin/ but your site should now be available at http://yoursite.com.

I hope this helps! If you need more information, see the link that John Watson supplied: Giving WordPress Its Own Directory.

share|improve this answer

Your Answer


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