Usually, this is a problem with the Site URL or WordPress URL not being set properly. If you just copied the database, WordPress itself will try to redirect the domain back to what it thinks is the right site.
You have two options:
1. Edit the Settings
Use PHPMyAdmin or a similar tool to edit the site url and WordPress url settings in the database. This should fix the problem assuming nothing else on your development box is forcing the redirect.
2. Change your Hosts File
This is the better solution. Edit your hosts file to point http://clientsite.com
at your local IP address (127.0.0.1). Then, just navigate to the development site the same way you would the production site. Just remember to change your hosts file back when you’re done developing.
Related Posts:
- Why is WordPress redirecting from http to https on a local environment?
- Force HTTPS using .htaccess – stuck in redirect loop
- How to redirect url requests to https? [closed]
- Redirect www to non-www htaccess
- 302 redirect instead of 301 after switch to HTTPS
- WordPress redirect loop on nginx + apache reverse proxy
- Redirect from https to http or from http to https? [closed]
- Redirect to https not working with .htaccess [closed]
- Mixed Content with SSL, wordpress behind a reverse proxy
- Menu links only using http after enabling https, unable to redirect http links
- Cant Access Website – Changed HTTP to HTTPs
- https multiple redirects
- some url does not redirect from http to https
- https redirect (with .htaccess) redirect loop
- Redirect HTTP to HTTPS
- Site redirecting from http to https [closed]
- WordPress Redirecting HTTPS Requests to HTTP
- Infinite loop behind SSL proxy on non-standard port
- What is the right way to redirect all traffic to HTTPS?
- 301 redirection editing .htaccess doesn’t work
- WordPress keeps redirecting subpages without http to https homepage after switch
- https – too many redirects
- How to use https on one page only?
- .htaccess 301 redirect conflict with plugin “WordPress Https”
- ReDirect subfolder link to another sub-folder and force SSL
- Force WordPress https redirect before www redirect based on site address url
- WordPress CSS/Theme gone after SSL got activated
- My site doesn’t redirect from HTTP to HTTPS
- Only execute function if SSL is set up properly
- HTTPS to HTTP rewrite rules not working as expected
- Understanding Redirects
- How to replace the links http to https
- Why https://www. SUBdomain is redirected by WP to https://MAINdomain
- WordPress site not forcing from http to https instead getting redirected too many times
- I get “too many redirects” problem when migrating localhost site
- Redirect HTTP request to HTTPS request
- Moving site from HTTP to HTTPS
- How to move a https website back to dev and access the admin?
- WordPress HTTPS – ‘… better to use HTTP for installation …’
- How to force HTTP and stop SSL completey on WordPress website
- How do you redirect HTTPS to HTTP?
- How to redirect non-logged in users to a specific page?
- Non-WordPress page in subdirectory under WordPress page
- How to setup 301 redirects for multiple query string URLs?
- Redirect to current page after wordpress login
- How does WordPress redirect to WooCommerce shop page? [closed]
- htaccess redirect not working
- htaccess wildcard redirect misses some URLs
- 301 Redirect Custom URL hierarchy to WordPress Posts
- Plugin Redirect After Activation
- Wp Login redirect strips parameters from url
- 302 redirect to signup with nginx reverse proxy
- Strange redirection issues on wordpress from ssl with padlock to ssl without padlock
- Redirect away from login page
- Redirect if $_Server[‘REQUEST_URI’] is /wp-login.php?checkemail=registered
- set up 301 redirect within wp-content/uploads/ directory of a WP site to a new image URL
- How to redirect user after login to a specific page?
- How can I redirect a URL to an anchor link while maintaining the URL?
- How to remove duplicate and unnecessary part in a url using htaccess and regex?
- How To Fix A Redirect Chain
- Masked a external URL and redirection plugin
- Login Redirect – Multiple Scenarios
- Redirect outside WP after login
- Redirect non existing page to frontpage
- How do I do a redirect to WordPress permalink with post id via htaccess?
- How to redirect multiple subfolders back to root domain?
- Redirect After Login Error
- 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
- Old missing file in wp-content/uploads/ returns a 500 error, how to catch and redirect?
- Browsers Forcing Multisite to https
- Is it possible to change redirect template through a shortcode?
- How do redirect user back to previous page when on certain pages?
- Keep the old referrer after failed login
- How to 301 redirect WP posts id “/c/94940894” to permalink with post name?
- WP 301 redirect does not work
- 301 Redirect Link to Media
- WordPress Redirect post to outside website based on useragent
- Redirect not work
- Redirect to custom admin menu after plugin activation
- All new posts serving 301 redirect
- home page redirect loop after update to 4.8
- Redirect from plugin created page
- How is this URL being redirected?
- What’s the best way to redirect to a new wordpress website?
- 301 Redirect only for posts
- Custom redirects with using SQL
- Why is WordPress redirecting to homepage after GET form submit?
- Redirect after user changes password
- Getting error when trying to redirect WP site to mobile site
- wp_login_form: Redirect to dynamic url according to username
- Hide page for user logged and redirect for profile? [duplicate]
- Redirect URL while building site
- 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
- How to disable login and registration pages?
- Is there a way to redirect people from a page on my .com website to a corresponding page on my .co.uk website if they are in the UK
- How to find out what is causing redirect of static content?