Title: Root directory mistake
Last modified: September 1, 2016

---

# Root directory mistake

 *  [clerson](https://wordpress.org/support/users/clerson/)
 * (@clerson)
 * [10 years ago](https://wordpress.org/support/topic/root-directory-mistake/)
 * Hi,
 * Here is a newbie (me) issue:
 * I made a dumb mistake: I changed the URL settings of my site in the admin and
   followed this info:
    [https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 *     ```
       Open your root directory's index.php file in a text editor
       Change the line that says:
       require( dirname( __FILE__ ) . '/wp-blog-header.php' );
       to the following, using your directory name for the WordPress core files:
       require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
       ```
   
 * So now I’m unable to edit my site, can’t even get back to the admin. I browsed.
   htaccess info but can’t find whats wrong.
 * Any help would be truely appreciated.
 * Thx

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years ago](https://wordpress.org/support/topic/root-directory-mistake/#post-7597694)
 * Try this
 * [https://codex.wordpress.org/Moving_WordPress#If_You_Have_Accidentally_Changed_your_WordPress_Site_URL](https://codex.wordpress.org/Moving_WordPress#If_You_Have_Accidentally_Changed_your_WordPress_Site_URL)
 * HOwever, if all you did was change index.php, you should just change it back.
 * Use FTP to download the file, edit, the upload the result.
 *  Thread Starter [clerson](https://wordpress.org/support/users/clerson/)
 * (@clerson)
 * [10 years ago](https://wordpress.org/support/topic/root-directory-mistake/#post-7597747)
 * Hi Steve,
 * Many thx for your help.
 * I’m afraid it doesn’t work: [http://collegexbreaks.com/wp-collegexbreaks/](http://collegexbreaks.com/wp-collegexbreaks/)
 * I get this error message:
    _Warning: require(/home/content/06/8423506/html/wp-
   collegexbreakswp-collegexbreaks/wp-blog-header.php) [function.require]: failed
   to open stream: No such file or directory in /home/content/06/8423506/html/wp-
   collegexbreaks/index.php on line 18_
 * Weird, I thought it supposed to be:
    _/home/content/06/8423506/html/wp-collegexbreaks/
   wp-blog-header.php_ Instead of: _/home/content/06/8423506/html/wp-collegexbreakswp-
   collegexbreaks/wp-blog-header.php_
 * Here is what I wrote in wp-login.php:
 *     ```
       update_option('siteurl', 'http://collegexbreaks.com/wp-collegexbreaks' );
       update_option('home', 'http://collegexbreaks.com/wp-collegexbreaks' );
       ```
   
 * Does it have something to do with .htaccess?
 * Thx again
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years ago](https://wordpress.org/support/topic/root-directory-mistake/#post-7597748)
 * I hope you meant wp-config.php and not wp-login.php. You should not be editing
   core files.
 *  Thread Starter [clerson](https://wordpress.org/support/users/clerson/)
 * (@clerson)
 * [10 years ago](https://wordpress.org/support/topic/root-directory-mistake/#post-7597795)
 * Hi,
 * I followed the [link](https://codex.wordpress.org/Moving_WordPress#If_You_Have_Accidentally_Changed_your_WordPress_Site_URL)
   you provided so I changed _wp-login.php_.
 * The mistake I did was the following:
 * I changed that (original setup):
    <img src=”[http://collegexbreaks.com/wp-bug/screen1.png&#8221](http://collegexbreaks.com/wp-bug/screen1.png&#8221);
   width=”684″ height=”123″>
 * To that (my mistake):
    <img src=”[http://collegexbreaks.com/wp-bug/screen2.png&#8221](http://collegexbreaks.com/wp-bug/screen2.png&#8221);
   width=”684″ height=”123″>
 * Thx fot all

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

The topic ‘Root directory mistake’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [clerson](https://wordpress.org/support/users/clerson/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/root-directory-mistake/#post-7597795)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
