Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

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 */
require('./wp-blog-header.php');

Replace it with the following code and save the file.

/** Loads the WordPress Environment and Template */
require('./myblog/wp-blog-header.php');

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 ? –  user987795 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

 
discard

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.