Remove WP_HOME and WP_SITEURL from your wp-config.php, and then check in the wp_options table for the values “siteurl” and “home” and change them to http://localhost/sitefolder. It must be an absolute URL.
The WP Codex has more information about changing the site URL.
Related Posts:
- Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script
- Forbidden localhost error and error establishing database
- After moving wordpress some files still point to old directory
- How to work locally on a copy of my wordpress?
- Trouble running local WordPress in Google App Engine
- Redirect loop error on wordpress landing page on localhost
- Redirect to another page using contact form 7? [closed]
- WordPress installation from live site to localhost
- How can I deploy my InstantWP site to a live website?
- How to effectively handle the problem of installing WordPress locally for each new project?
- I moved my WordPress site to the main directory and now I can’t access my admin
- Image link issues after importing a database backup to my local web server
- WordPress Skeleton installation
- Why is WordPress’ installer “phoning home” during the install script?
- Transferring from “Populate” CMS to WordPress
- How to install multiple wordpress site on localhost
- What is the “Quick and Dirty” way to transfer WordPress installation?
- Upload a website on WAMP and modify it
- Error on update translation
- WordPress Installation
- Incorrect Blog Root
- Installing WordPress into a user directory without any admin privileges
- Problems in migration of WordPress site from local server to the online server
- How do I setup my cpanel site backup on a local host?
- How to completely remove Python from a Windows machine?
- How to install MinGW 64 on windows 10
- wordpress on localhost lamp doesn’t let me install plugins
- Things to take care when moving from hosted wordpress to self-hosting
- the correct order of manual install WP and SSL on server
- How do I install two versions of WordPress on 1 server?
- Plugins to clone wordpress site and move to another url
- wp core install database connection error
- Installed successfully; home page still redirects to install.php
- How to import WP XML file automatically on installation?
- Install wordpress in backend with Existing html website alive
- Moving to a new domain in the same server
- Issue converting single site to multi-site – blogs.dir folder not created
- WordPress Admin Interface not styled properly
- When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer?
- Why isn’t my imported database showing up? install.php pops up and adds new tables to the database
- How to use if condition to change $table_prefix in wp_config.php
- Export all content from wordpress
- Import live site to local setup without access to live site
- Should I delete automatically-created files before installing WordPress?
- “The package could not be installed” when updating plugins, themes, and core files on WampServer
- WAMP to XAMPP WordPress transfer
- Change WordPress directory
- No option to update WP in client’s backend
- wp-cli installation
- Transfer wordpress site from web server to localhost
- Page not found error shown while installing wordpress on IIS server
- Can you create a local wordpress network / multisite install on a mac with subdomains?
- How can I completely disable a WordPress installation?
- How to first edit in local WordPress editor on page and the add code?
- WordPress database error on (fresh) reinstall
- Allowing WordPress from non-public address/domain
- Why I have this error when I try to install this old blog on my local webserver?
- Version 3.04 or 3.5?
- Basic installation questions
- Problem migrating to localhost
- WordPress localhost site always redirect to live site [closed]
- WSOD right after install
- How to install WP alongside my existing site at a sub-directory (bradydjohnson.com/blog)?
- Design problems when exporting remote database for local development
- What are the pros & cons of a new wordpress installation vs fixing one that already exists?
- How to transfer from localHost to live but use the already existing database on the server?
- $post->id vs $post->ID problem after using WordPress config bootstrap
- Things to take care before installing wordpress Manual v/s Softaculous
- Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy
- Site blocked by WebSense on fresh WP Install
- WAMP WordPress installation cannot get past step 1, loads indefinitely
- WordPress 3.1 Install Error
- Disable creation of default content during installation
- Localhost access after changing URL
- How to recreate a WordPress site
- Migrate site from local to local via a backup
- More than 5 time my Website show this issue
- Installation failed: Destination folder already exists
- Installing WordPress to root directory with existing static site. Concerns?
- How do I quickly move between 2 local installations and keep them in sync?
- Local installation is broken
- First time installing WordPress. Cant Access
- Cant view wordpress after install
- Customized wordpress theme locally put on someones WordPress account
- Migrating a live WordPress website to a Local Server: why some elements of the website are missing?
- How to update WP-CLI on Windows via Composer?
- How to replace a wordpress installation in root directory with another in a subdirectory?
- CPU spikes to 100% site doesn’t load, VPS crashes after moving site
- Have non-wordpress page as root (and blog elsewhere)
- How can I use images that are on the server locally?
- Why I have this error when I try to install this old blog on my local webserver?
- Moving from one WP site to a new WP site incrementally
- Saving Permalinks Results in 403 MAMP (Windows)
- Are two installations of WordPress on the same domain (no subdomains) ok?
- Can’t restore my wordpress site from zip back up file
- I can access to my wordpress page at work and via cellphone, but when I get home, I can’t access to the website
- Multiple independent wordpress installs – 1 dedicated server – individual dedicated domain for each install. What is the best way to achieve this?
- WordPress desktop app shows blank screen
- Getting an error when trying to migrate to DV server from Grid with Media Temple [closed]
- Is php-mysql required for wordpress?