Title: Question about moving WordPress
Last modified: August 19, 2016

---

# Question about moving WordPress

 *  [bigal543](https://wordpress.org/support/users/bigal543/)
 * (@bigal543)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/question-about-moving-wordpress/)
 * I want to try something similar to what is decribed in “Giving WordPress its 
   Own Directory While Leaving Your Blog in the Root Directory.” I tried it before
   on a different blog and it caused problems that were difficult to undo, so I 
   thought before attempting it a second time, I would ask for some advice.
 * My host provided an installation link for WordPress in my control panel. This
   method did not allow me to install WordPress in the root directory. The installation
   was successful in a sub-directory of the root folder. I actually prefer the wp
   files in a sub-directory but I want the site’s index page to be the wp blog.
 * So I thought I could attempt something similar to what is detailed in “Giving
   WordPress its Own Directory While Leaving Your Blog in the Root Directory,” but
   as I said, last time I tried, there were big problems.
 * In “Giving WordPress its Own Directory While Leaving Your Blog in the Root Directory,”
   it mentions changing the URLs in general settings, then moving the core files
   to the new location. After that it says to copy the index.php and .htaccess files
   to the root directory, then it says modify the path in index.php so in includes
   the new sub-directory.
 * In my situation in which the installation was already in a sub-directory but 
   I would like the blog index page to display as the site index page, it appears
   I could change the URLs in general settings, move the index.php and .htaccess
   files into the root directory and it should work. I don’t have to move the core
   files because they are already in a sub-directory and I don’t have to modify 
   the index.php file to add the sub-directory because it should already have that
   sub-directory as part of the path.
 * Should this work, only changing the URLs and copying the index and htaccess files?
 * Also, just want to be sure, the index.php file referred to is the one in the 
   sub-directory, not the one in the sub-sub directory wp-content, right? One final
   thing, there are no .htaccess files currently. Will that be a problem?
 * Thanks in advance.

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

 *  [figaro](https://wordpress.org/support/users/figaro/)
 * (@figaro)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/question-about-moving-wordpress/#post-1119748)
 * > I don’t have to move the core files because they are already in a sub-directory
 * True
 * > I don’t have to modify the index.php file to add the sub-directory because 
   > it should already have that sub-directory as part of the path.
 * False…you still need to edit it.
 * > Also, just want to be sure, the index.php file referred to is the one in the
   > sub-directory, not the one in the sub-sub directory wp-content, right?
 * True
 * > One final thing, there are no .htaccess files currently. Will that be a problem?
 * No…just create one.
 *  Thread Starter [bigal543](https://wordpress.org/support/users/bigal543/)
 * (@bigal543)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/question-about-moving-wordpress/#post-1119851)
 * Thanks figaro for the help. Nice catch on the path in the index file.
 * I believe it is working as desired now. I haven’t added any posts yet but the
   blog is displaying as desired in the root even though the core files are in a
   sub-directory.
 * Plus, the default Hello post and the About page appear to display properly from
   the sub-directory.
 * One part of the process confused me some and didn’t go smoothly. I will mention
   it here for reference in case it will save someone else some problems in the 
   future.
 * I thought I would want the Blog address in the general settings to be the root
   URL (mysite.com), since the objective was to get the blog to display as my domain
   home page. Even the description in General Settings for Blog address says if 
   you want your blog home page to be different from the directory you installed
   WordPress, enter it there.
 * When I did that, the blog home page displayed properly as my domain home page
   but the About page or default post (Hello world!) would not display. Closer inspection
   revealed the path for the About page and the default Hello post did not show 
   the sub-directory where the content is located.
 * When I changed the Blog address to include the sub-directory, it appears all 
   pages display properly.
 * My conclusion for this situation of wanting the blog to display as my domain 
   home page but wanting the core files in a sub-directory, is that both the WordPress
   URL and Blog URL have to tell the system where the core files are located.
 * Copying the index.php file from the sub-directory, modifying it to include the
   sub-directory in the path and then loading in the root directory is what allows
   the system to display the blog home page as my domain home page. That is all 
   that needed in this situation.
 * Does this sound correct or does it sound like I will run into problems when I
   start making posts with things as is? Thanks again for the help.
 * Big Al

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

The topic ‘Question about moving WordPress’ is closed to new replies.

## Tags

 * [moving-wordpress](https://wordpress.org/support/topic-tag/moving-wordpress/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [bigal543](https://wordpress.org/support/users/bigal543/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/question-about-moving-wordpress/#post-1119851)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
