Title: Missing area admin access
Last modified: August 20, 2016

---

# Missing area admin access

 *  [ilpreva](https://wordpress.org/support/users/ilpreva/)
 * (@ilpreva)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/missing-area-admin-access/)
 * Hello,
    I was working in my admin area, in Settings, and I changed the Site address
   Url and WordPress address URL. Now, i unfortunately forgot both of them, and 
   now i can’t access my administrator area anymore. Is there any chance to change
   some of the configuration or settings files to restore or change them again? 
   If it exist, what file should I edit? Which parameter?
 * Thank you, waiting for you answer!

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

 *  [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * (@tm3909)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/missing-area-admin-access/#post-2772213)
 * Two answers:
 * 1. You can drop the following code into the very beginning of wp-config.php just
   after <?php and then attempt to visit the admin.
 * update_option(‘siteurl’,’[http://yourdomain.com&#8217](http://yourdomain.com&#8217););
   
   update_option(‘home’,’[http://yourdomain.com&#8217](http://yourdomain.com&#8217););
 * 2. You can use PHPMyadmin (or another MySQL management system) and navigate to
   your wp_options table. There, look for “siteurl” and “home” and correct their
   url’s (to the correct domain).
 *  Thread Starter [ilpreva](https://wordpress.org/support/users/ilpreva/)
 * (@ilpreva)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/missing-area-admin-access/#post-2772271)
 * Hi,
 * thanks for your kind and fast message.
 * I’ve tried the option 1 dropping the code in the file config.
 * Then if I digit the Url of my domani or admin the result is:
 *  Fatal error: Call to undefined function update_option() in /htdocs/public/www/
   wp/wp-config.php on line 2
 * These are my details:
 * URL : [http://www.albacareto.it/wp](http://www.albacareto.it/wp)
    Admin URL :
   [http://www.albacareto.it/wp/wp-admin/](http://www.albacareto.it/wp/wp-admin/)
 * I put in the file config this code:
 * update_option(‘siteurl’,’[http://www.albacareto.it/wp&#8217](http://www.albacareto.it/wp&#8217););
   
   update_option(‘home’,’[http://www.albacareto.it/wp&#8217](http://www.albacareto.it/wp&#8217););
 * It’s correct?
 *  Waiting for your help!!
 * Thanks
 * Gabriele
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/missing-area-admin-access/#post-2772285)
 * The complete instructions for resetting your URL’s can be found here: [Changing The Site URL](http://codex.wordpress.org/Changing_The_Site_URL)

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

The topic ‘Missing area admin access’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/missing-area-admin-access/#post-2772285)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
