Title: Lost wordpress directory
Last modified: September 27, 2017

---

# Lost wordpress directory

 *  [reinisr](https://wordpress.org/support/users/reinisr/)
 * (@reinisr)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/lost-wordpress-directory/)
 * Hi, through my stupidity, I’ve fallen into a great problem.
 * I had installed wordpress on a website in the directory: dailesnams.lv/wordpress/
   
   and was working on the wordpress version there to eventually replace the main
   site (sort of behind the scenes maintenance, so that the original page still 
   works while i work on the wordpress version). Just minutes ago I thought checking
   out in the wordpress install in general settings what happens when i change the“
   WordPress Address (URL)” and the “Site Address (URL)”, which were both set on
   dailesnams.lv/wordpress/, because that’s where wordpress is installed for me.
   I changed it to just dailesnams.lv and horror of horrors, I’ve lost my directory!
   i cant access the admin panel through anything, not: dailesnams.lv/wp-admin/ 
   or anything! How could I get it back to the old /wordpress directory??
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flost-wordpress-directory%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [reinisr](https://wordpress.org/support/users/reinisr/)
 * (@reinisr)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/lost-wordpress-directory/#post-9537203)
 * Nevermind, solved!
 *  [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * (@supporthero)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/lost-wordpress-directory/#post-9537217)
 * Hi,
 * When WordPress is in the /wordpress/ directory, you can’t set home/site URL to
   the root domain without additional tweaks to make sure everything points to the
   right place.
 * If you can access your database easily, you can change manually your URLs back
   to the development URL. You’ll find them under wp_options tables, you need to
   look for siteurl and home.
 * If you’re not sure how to do it, you can update them by placing the following
   2 lines of code into your theme’s function.php file and trying to load WordPress.
   This will update your URLs back to the development URL. After you done, remove
   these 2 lines:
 * update_option( ‘siteurl’, ‘[http://dailesnams.lv/wordpress/&#8217](http://dailesnams.lv/wordpress/&#8217););
   
   update_option( ‘home’, ‘[http://dailesnams.lv/wordpress/&#8217](http://dailesnams.lv/wordpress/&#8217););
 * More info on this:
    [https://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php](https://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php)
 * ^V

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

The topic ‘Lost wordpress directory’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/lost-wordpress-directory/#post-9537217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
