WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. 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 site in a root folder like this "www.mysite/myblog/"

so to get to the blog you have to go to "www.mysite/myblog/"

I'm wanting to make it so that a user can go to "www.mysite" and it hits the blog. What do I need to do. All my images and everything have the ".../myblog/" path. I don't want to have to go through and correct all this because I'm sure that I'll mess something up.

so basically wanting some help on how to do this.

any advice would be great!

share|improve this question
up vote 1 down vote accepted

Copy the index.php and .htaccess file(Just copy it , do not move it ) from myblog directory to root directory.

Open index.php file in any text editor and find the following code in the file.

/** Loads the WordPress Environment and Template */

Replace it with the following code and save the file.

/** Loads the WordPress Environment and Template */

Go to the General Settings page from settings section in the back end and change Site Address (URL) field to http://wwww.mysite.com as shown below in screenshot.

General Settings

You can get more information on this settings from this page.

You can access backend of site from this URL : http://www.mysite.com/myblog/wp-admin

If you face any problem then let me know..

share|improve this answer
This page in Codex outlines the process: Giving WordPress Its Own Directory: Using a pre-existing subdirectory install. You will have to change the site URL in settings as well for this to work. – Milo Mar 17 '13 at 3:45
will I need to do anything with the image url's ? – ironman Mar 17 '13 at 4:30
@user987795 No you do not need to do anything with the image url's. – Vinod Dalvi Mar 17 '13 at 4:32

I case of an Apache HTTP server you can try this:

RewriteRule ^/$ /myblog/ [QSA,L]

This will take care of the home page.

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.