Check your production site’s wp-config.php
file for one or both of these lines:
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );
…and set them as appropriate if they exist.
These constants will override the settings in the database if they’re present. See Editing wp-config.php
for details.
Related Posts:
- Non-WordPress page in subdirectory under WordPress page
- Site redirects to wrong url when saving settings
- WordPress within a subdirectory of another WordPress environment doesn’t work
- How to redirect subcategories to a page?
- How to publish new posts/pages in root instead of subfolder, but keep old structure in place?
- Unable to access folders in same level as wordpress installation
- ReDirect subfolder link to another sub-folder and force SSL
- Empty folder being created by WordPress, breaks site
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- How to redirect the frontend of a WordPress site (only)?
- My Cloned WP site keeps redirecting to the old one
- Open wordpress page in directory the way index.html would open
- WordPress Staging site is redirecting to live and lost the child theme
- WordPress not linking correctly with .htaccess redirect to subdirectory
- Redirect after login when WordPress in subdirectory
- home page redirect loop after update to 4.8
- How to force a 404 on WordPress
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Disable WordPress URL auto complete
- WordPress redirecting connections on port 8080 to 80
- Disable ONLY URL auto complete, not the whole canonical URL system
- 301 redirect instead of 404 when URL is a prefix of a post or page name?
- Redirect to referring page after logging in
- Correct way to hide pseudo pages from being shown?
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirect to post after submission with Gravity Forms? [closed]
- I want to redirect the url to the previous page
- Headers already sent – WordPress core
- Import WordPress Post Slug with Forward Slash
- Create a php callback/endpoint for an OAuth script
- Query WP data with the WPDB API from outside WordPress
- How to redirect user to a page after form submission
- Too many redirects when using wp super cache [closed]
- header and wp_redirect not working. cannot modify header information warning
- Code to create a redirection after login?
- Headless WordPress redirect front-page to login page [closed]
- 301 Redirect To Post ID
- Redirect after password update
- How to add new redirection on wordpress site
- How to use Regex to add to a url?
- htaccess redirect invoice.php to /client/invoice.php
- redirecting and showing notice from previous action
- redirect wp-admin/install.php
- Make posts 410 dynamically
- Redirect homepage with htaccess, except if I enter the link adding “/home”
- How to properly encode url with parameters for redirect_to
- How to disable redirect on pagination first page
- Redirect user to a form until they have filled it out [closed]
- How to redirect to clean links with this code
- How can I make my WordPress site redirect to subdomain once successfully login they will redirect back to root domain
- Redirections and rewrites to subdomain
- Redirect user to previous page after signup from custom form
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- 301 Redirect all page and post urls from .html to /
- Get query parameters from external url and make a redirection
- Why does specifying ‘about-us’ as a link target take longer than specifying ‘about-us/’?
- Internal Links that Automatically Update
- wordpress_redirect returns different headers for HEAD and GET requests
- Usage of the login_redirect filter
- Show different page for first time user
- Redirecting to new URL structure and 301
- Blog has an infinite redirect loop
- WP forwarding to wrong site address
- wp_login_form redirect problem
- Redirect away from page if user is not admin
- Redirect to parent page if child does not exist
- How do I change the home page to the registered user’s profile page
- redirect index.html inside folder to wordpress page of same name
- Conditional Redirect
- Upload Directory question
- 301 Redirect /author/username/ to /profile/username/
- Redirection with a wildcard
- How can I stop redirecting from a search to a taxonomy archive page
- How to return a 410 code for previously published posts now set to draft?
- Debugging issue with redirection in WordPress
- The / location 301-redirects to itself in a loop
- Redirect user from backend to frontend
- Internal Redirections?
- Need to redirect from Apache2 Ubuntu Default Page to home page in wordpress
- Make a treatment before the action of the form
- Using cache brokes redirecting
- Is it possible to take a new visitor to the site to a disclaimer page and then return them to their previous page?
- How to 301 redirect sub domain post URL to root domain
- Homepage (domain) that redirects user toward two subdomains based on his/her preferred language
- redirect to another page if user has registered successfully
- Too many redirects error when change of base url
- How to redirect new registrars to a custom registration page instead of WP default registration page?
- WordPress redirect users from certain countries to subpage of language version
- When redirecting all URLs to homepage, what exceptions do I need to make?
- Unable to access WP test site
- Force SSL on a single page which is used as iFrame
- Redirect from subdomain
- Show page without reference to post (like front-page)
- How to redirect all pages of a blog to a new blog
- How to handle expired assets/content when user has direct URL
- Best SEO way to redirect from all “posts” to home url
- redirect the root of a domain, while leaving the www version unredirected
- How to Create Custom Route to a page in WordPress
- How to create a redirect to another domain like safe redirect manager from php
- Post Migration Site Migration Redirects All Known Solutions Attempted