Title: Run from subdirectory to root errors
Last modified: August 22, 2016

---

# Run from subdirectory to root errors

 *  [robynkirby](https://wordpress.org/support/users/robynkirby/)
 * (@robynkirby)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/run-from-subdirectory-to-root-errors/)
 * Hi, I just tried running my site from the root (wp is installed in a subdirectory
   called “lake”. The site ran fine until I tried this:
 * + copied index.php and .htaccess to root dir
 * + edited index.php from require( dirname( __FILE__ ) . ‘./wp-blog-header.php’);
   to require( dirname( __FILE__ ) . ‘./lake/wp-blog-header.php’ );
 * + changed permalinks from post name to default, then back again
 * + deleted cache
 * This did not work, so I put everything back the way it was.
 * I am still getting this error:
 * Warning: require(/home4/rmkirby/public_html/willowlakeonline.com/lake./wp-blog-
   header.php): failed to open stream: No such file or directory in /home4/rmkirby/
   public_html/willowlakeonline.com/lake/index.php on line 17
 * Fatal error: require(): Failed opening required ‘/home4/rmkirby/public_html/willowlakeonline.
   com/lake./wp-blog-header.php’ (include_path=’.:/opt/php54/lib/php’) in /home4/
   rmkirby/public_html/willowlakeonline.com/lake/index.php on line 17
 * I’d like to get it working again from the subdirectory, so I could try changing
   it to the root again.
 * I have seen others that have had this problem here, but after trying their fixes,
   I am still at a loss.
 * Any help would be apreciated.
 * -Robyn

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/run-from-subdirectory-to-root-errors/#post-5884401)
 * Try this instead:
 * `require( dirname( __FILE__ ) . '/lake/wp-blog-header.php' );`
 *  Thread Starter [robynkirby](https://wordpress.org/support/users/robynkirby/)
 * (@robynkirby)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/run-from-subdirectory-to-root-errors/#post-5884509)
 * Thanks, but still no dice. 🙁
 *  Thread Starter [robynkirby](https://wordpress.org/support/users/robynkirby/)
 * (@robynkirby)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/run-from-subdirectory-to-root-errors/#post-5884511)
 * I put everything back together and it works again from the sub-directory.
 * I’d still like to run it from the root. I will keep on plugging away at it.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/run-from-subdirectory-to-root-errors/#post-5884517)
 * Why not just move WordPress to the web root?
 * [https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server](https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server)

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

The topic ‘Run from subdirectory to root errors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/run-from-subdirectory-to-root-errors/#post-5884517)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
