Title: Moving URL problems
Last modified: August 20, 2016

---

# Moving URL problems

 *  [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * (@oneofseven)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/)
 * I am trying to get the /WP out of my URL. I was following the directions on the“
   [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory&#8221](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory&#8221);
   page.
    The directions say: **8. Open your root directory’s index.php file in 
   a text editor 9. Change the following and save the file. Change the line that
   says: require(‘./wp-blog-header.php’); to the following, using your directory
   name for the WordPress core files: require(‘./wordpress/wp-blog-header.php’);
   _However, my index.php does not have this code._ This is the file:
 * _[ 103 lines of code moderated. For more than [10 lines of code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   please use [pastebin.com](http://pastebin.com/) instead. ]_
 * What am I suposed to change?

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

 *  [KristinCodesWP](https://wordpress.org/support/users/kristincodeswp/)
 * (@kristincodeswp)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716156)
 * This looks like the index.php file for the wp-admin folder. They’re referring
   to the WordPress main index.php file.
 *  Thread Starter [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * (@oneofseven)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716158)
 * Ah, ok. I will try to find this. Thank You. I am new and learning.
 *  [KristinCodesWP](https://wordpress.org/support/users/kristincodeswp/)
 * (@kristincodeswp)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716161)
 * No problem. When you download WordPress, it is the index.php file in the main
   folder. So if you installed WordPress in the WP folder, it’d be located at WP/
   index.php
 * I believe in their directions, though, for giving WordPress it’s own directory,
   you are supposed to copy that file over to your root directory (not the WP/ folder,
   your main web folder) and make the change to the file located there.
 *  Thread Starter [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * (@oneofseven)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716169)
 * I found it. However, I want there is no /***/ file to change it to. The site 
   was [http://www.hobbyfarmers.org/wp](http://www.hobbyfarmers.org/wp) I am trying
   to change it to [http://www.hobbyfarmers.org](http://www.hobbyfarmers.org)
    What
   do I change?
 *  [KristinCodesWP](https://wordpress.org/support/users/kristincodeswp/)
 * (@kristincodeswp)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716171)
 * In the index.php file located at hobbyfarmers.org/index.php, find this:
 * require(‘./wp-blog-header.php’);
 * change it to:
 * require(‘./wp/wp-blog-header.php’);
 *  Thread Starter [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * (@oneofseven)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716187)
 * Thank you. I changed it and can find the site now. However, I cannot login or
   get to the dashboard. Is ther a backdoor to it?
 *  Thread Starter [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * (@oneofseven)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716188)
 * I was an idiot. I changed both WordPress address and the site address in the 
   Dashboard settings page. I should have just changed the Site URL option. Is there
   an easy way to just change the WordPress address back without undoing everything?
 *  [KristinCodesWP](https://wordpress.org/support/users/kristincodeswp/)
 * (@kristincodeswp)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716190)
 * Put this in the wp-config.php file:
 * define(‘WP_HOME’,’[http://example.com&#8217](http://example.com&#8217););
    define(‘
   WP_SITEURL’,’[http://example.com&#8217](http://example.com&#8217););
 * Change the appropriate URLs.
 * Also, your login will still be in the wp/ folder so you’d go to [http://www.hobbyfarmers.org/wp/wp-login.php](http://www.hobbyfarmers.org/wp/wp-login.php)
   to log-in
 *  Thread Starter [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * (@oneofseven)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716194)
 * Thank You. I had a brain cloud of the methane variety. I went to the PHPmyadmin
   and changed the directory in the options database. Then I deleted the index.php
   and htaccess in my new directory. This allowed me to access the Dashboard so 
   I could start over. Thanks for your help. The site is working now.

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

The topic ‘Moving URL problems’ is closed to new replies.

## Tags

 * [change URL](https://wordpress.org/support/topic-tag/change-url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [oneofseven](https://wordpress.org/support/users/oneofseven/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/moving-url-problems/#post-2716194)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
