Title: Loads from wrong directory
Last modified: August 31, 2016

---

# Loads from wrong directory

 *  Resolved [bobchatelle](https://wordpress.org/support/users/bobchatelle/)
 * (@bobchatelle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loads-from-wrong-directory/)
 * I recently made extensive changes to a site. In order not to disturb the existing
   site, I did all my work in a subdirectory. When everything was debugged I (1)
   copied all modules to the main directory and (2) used phpmyadmin to edit site
   url and home to point to the main directory.
 * Everything seemed to work fine. I made a change to headr.php. This change took
   effect on my landing page but not on the subpages. On the subpages it appeared
   to fetch header.php from the subdirectory.
 * I verified this by renaming the subdirectory. This causes an internal configuration
   error.
 * I copied the new version of header.php to the subdirectory and now everything
   works again.
 * But I don’t understand why the server sometimes fetches from the subdirectory
   and not the main directory. I suspect there must be something else in the database
   I must change in addition to site url and home. But I don’t know what.
 * Any suggestions would be much appreciated.
 * Thanks,
    Bob

Viewing 1 replies (of 1 total)

 *  Thread Starter [bobchatelle](https://wordpress.org/support/users/bobchatelle/)
 * (@bobchatelle)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loads-from-wrong-directory/#post-7075061)
 * Never mind. I disabled my caching plugin and the problem went away. I reenabled
   it and everything still works.

Viewing 1 replies (of 1 total)

The topic ‘Loads from wrong directory’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [bobchatelle](https://wordpress.org/support/users/bobchatelle/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/loads-from-wrong-directory/#post-7075061)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
