Title: Localhost WAMPP problem
Last modified: August 30, 2016

---

# Localhost WAMPP problem

 *  [James](https://wordpress.org/support/users/petteri111/)
 * (@petteri111)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/)
 * Hello,
 * I backed up my website which was on hostgator.
    Imported files and database to
   WAMPP
 * **Problem:**
    now when im trying to log in to wordpress. localhost/wp-admin, 
   All good this far
 * But now when i push login, it will redirect me to
    old domain which i had -> 
   sample.com
 * What causes this redirect, it should stay in localhost.
    Cant log to wordpress
   admin panel, since redirecting to old domains.

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

 *  [Blake](https://wordpress.org/support/users/blakemoore123/)
 * (@blakemoore123)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/#post-6193833)
 * This will be due to an inconsistent SITE_URL and HOME setting in the database.
 * Take a dump of your database as a backup.
 * Then run the below query in phpMyAdmin.
 * UPDATE wp_options SET option_value = ‘[http://localhost&#8217](http://localhost&#8217);
   WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
 * If you’re still having problems, restore from the dump you took and paste the
   output of this query.
 * SELECT * FROM wp_options WHERE option_name =’siteurl’ OR option_name = ‘home’;
 * Cheers
 *  [LyleChamney](https://wordpress.org/support/users/lylechamney/)
 * (@lylechamney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/#post-6193908)
 * After you imported the database, you have to edit the `siteurl` and `home` fields
   in the wp_options table with the local URL, which will depend upon where you 
   placed your site files within drive_letter:\WAMP\www.
 * If you placed them in a folder within the above path, then enter for both:
 * `http://localhost/folder_name`
 * If you placed them directly in the root, i.e. drive_letter:\WAMP\www then enter:
 * `http://localhost`
 * That will let you log into the dashboard.
 * Once there, install and run this plugin:
 * [http://wordpress.org/plugins/velvet-blues-update-urls/](http://wordpress.org/plugins/velvet-blues-update-urls/)
 * — select all options EXCEPT the last one (GUID)
 * Once that is done, go to:
 * Settings > Permalinks and Save.
 *  Thread Starter [James](https://wordpress.org/support/users/petteri111/)
 * (@petteri111)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/#post-6193911)
 * Ok, thank you very much. Got it working by changing site url from php myadmin.
   I had already destroyed the database of this website.
 * So i guess next time i will export the real backup database instead of getting
   Dump. 🙂
 * Dump might be correct choice if moving website, with the same domain name to 
   another host for example ?
 *  [Blake](https://wordpress.org/support/users/blakemoore123/)
 * (@blakemoore123)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/#post-6193912)
 * Glad I could help!
 *  [LyleChamney](https://wordpress.org/support/users/lylechamney/)
 * (@lylechamney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/#post-6193913)
 * Good to hear that you got it sorted 🙂
 * However, ‘dump’ and ‘export’ mean the same thing when it comes to the database.‘
   Dump’ being more in the vernacular of DBAs (Database Administrators) whereas ‘
   export’ is generally used for us ‘unwashed masses’ 🙂 Doesn’t sound nearly as‘
   important’ and ‘technical’ 😉

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

The topic ‘Localhost WAMPP problem’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 5 replies
 * 3 participants
 * Last reply from: [LyleChamney](https://wordpress.org/support/users/lylechamney/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/localhost-wampp-problem/#post-6193913)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
