Look in your wp_options
database table for the siteurl
and home
options and check these are using your local URL.
As Captain S commented, these can also be overridden in your wp-config:
define('WP_HOME', 'http://www.localsite.test');
define('WP_SITEURL', 'http://www.localsite.test');
Related Posts:
- How can I move/redirect single blog posts from one blog to another?
- 302 redirect instead of 301 after switch to HTTPS
- WP redirects all pages from new domain to old domain
- Why specific file directory fails to redirect but its parent folder succeeds?
- Redirects from Tumblr to new WP
- WordPress redirecting to 127.0.0.1 when accessing the site from a remote device
- Localhost wordpress site redirects to public site
- How to migrate production WordPress to Localhost
- WordPress on a local machine redirecting to xampp dashboard page [closed]
- Trouble running local WordPress in Google App Engine
- About to migrate site to new domain
- Redirecting connection from IP to localhost
- W3 Cache redirects to front page when I press purge all caches
- Migrating to Tumblr [closed]
- WordPress Domain redirects to different host
- Forced Redirect on a server migration
- How can I prevent caching of wp_redirect?
- Unusual Apache2 Error Causing WordPress Redirect Error?
- Erase the HTML website and replace it with a WordPress website -301 Redirection
- Using cache brokes redirecting
- I get “too many redirects” problem when migrating localhost site
- How to manage around 90k 301 redirects after migration from old CMS
- All devices on my network redirect me to an old domain
- Forcing header cache control in 404 pages
- After migration index page still redirects to old url
- Why is WordPress redirecting from http to https on a local environment?
- Non-WordPress page in subdirectory under WordPress page
- Clarification on auth_redirect()
- Exclude a path from WordPress using .htaccess redirects (Apache)
- Restrict Access to wp-login.php
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- Stop unwanted WP redirection to new url
- Problem to redirect custom page using htaccess
- WordPress within a subdirectory of another WordPress environment doesn’t work
- wp-login.php — redirect logged in users to custom URL
- Website redirecting to old domain name
- How to do 301 redirect to Sub page using htaccess file?
- Redirect feed to 404 page
- Does WordPress automatically redirect url without parent slug?
- Can’t see login page after migration
- Redirect guest if he tries to access a specific page
- After finishing building a site on localhost, how do I transfer everything to a client’s server?
- Redirect homepage ( www.sitename.com ) to the latest post
- How to redirect URL with subfolder to the same URL but without subfolder?
- What is the right way to redirect all traffic to HTTPS?
- If User is NOT Logged in and Page ID is not 6 – Redirect to Login
- Where’s the redirect happening? [closed]
- Front end user creation form! How do you keep the user on the same page in event of error?
- URL redirect problem
- How to redirect if a background request is still being executed
- WP site in infinite redirect loop
- WordPress keeps redirecting subpages without http to https homepage after switch
- Redirect non-existent subpages to second part of url
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- ReDirect subfolder link to another sub-folder and force SSL
- How do I remove the RSS Feed Redirect?
- Why does WordPress redirect when I separate wp-core and wp-content?
- Redirect user to original url after login?
- User redirect to specific URL after logging in
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- BuddyPress – Redirects on Login and Logout
- adding GET variables to a header() location in a page template
- My site doesn’t redirect from HTTP to HTTPS
- Bedrock WordPress
- Only execute function if SSL is set up properly
- Redirect User to login page
- Redirect after get_delete_post_link
- Is it possible to detect if a POST action is for a “Save Post” before the save_post action?
- Disable and Hide WP-JSON
- URL redirection
- Redirect when not logged and parametr in link
- Browsers Forcing Multisite to https
- Is it possible to change redirect template through a shortcode?
- Hide a Post everywhere except on redirect
- Keep the old referrer after failed login
- How to 301 redirect WP posts id “/c/94940894” to permalink with post name?
- URL redirect regular expressions redirecting all after first viriable
- 301 Redirect Link to Media
- WordPress Redirect post to outside website based on useragent
- How to create mass 301 redirects with PHP in Nginx server without using a WP plugin
- HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]
- WordPress redirects to backend when i’am not logged in
- Redirect to custom admin menu after plugin activation
- Migrating WP site to localhost using Duplicator
- home page redirect loop after update to 4.8
- 301 Redirects when change URL in WordPress database
- How can I redirect to another page with screen already at the bottom of the page?
- How is this URL being redirected?
- What’s the best way to redirect to a new wordpress website?
- 301 Redirect only for posts
- How to move a https website back to dev and access the admin?
- Why is WordPress redirecting to homepage after GET form submit?
- Redirect after user changes password
- How to export database correctly for local to online
- URL is redirecting (301) when query string is passed through URL
- Hide page for user logged and redirect for profile? [duplicate]
- WordPress migration from live server to localhost having 404 error? [closed]
- Redirect ignore last URL segment
- Creating custom link that redirects to a another link
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error