Title: Migrating to root directory
Last modified: August 20, 2016

---

# Migrating to root directory

 *  [joeyvestal](https://wordpress.org/support/users/joeyvestal/)
 * (@joeyvestal)
 * [15 years ago](https://wordpress.org/support/topic/migrating-to-root-directory/)
 * So I set up this site in a subdomain (www.example.com/wordpress). Then, following
   the instructions here [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory),
   I changed the Site URL and moved index.php and .htaccess to the root and changed
   the one line of code accordingly. At this point everything was working fine. 
   than my client asked if I could move **everything** out of the subdomain and 
   into the root. So I followed these instructions: [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress).
 * My problem is that index.php is still pointing to the subdomain. I changed the
   code from `require('./wordpress/wp-blog-header.php')` to `require('./wp-blog-
   header.php')` but it still is pointing to the subdomain.
 * Do I need to change something in config.php or .htaccess?

The topic ‘Migrating to root directory’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)
 * [moving-wordpress](https://wordpress.org/support/topic-tag/moving-wordpress/)
 * [root directory](https://wordpress.org/support/topic-tag/root-directory/)
 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [joeyvestal](https://wordpress.org/support/users/joeyvestal/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/migrating-to-root-directory/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
