You need to set the WP_SITEURL
and WP_HOME
in wp-config.php
file.
Please add below code.
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
In your server SSL setup then used below code
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);
Related Posts:
- Site redirects to wrong url when saving settings
- WP redirects all pages from new domain to old domain
- How to use a custom domain?
- Changing siteurl and homeurl – internal links redirect to home page?
- Force WordPress to load from site’s hostname
- Can’t control WordPress Addresses from admin panel
- How to redirect the frontend of a WordPress site (only)?
- Extra Text in URL
- Redirect htaccess [closed]
- Site Address and WordPress Address settings when using a load balancer
- Preventing Canonical Redirect for CDN
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- Redirect to Page after Login (with variable)
- Displays url’s twice and getting 404 errors after activating
- 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
- 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]
- Stop WordPress Redirection From /keyword to /some-post-containing-keyword/
- Specific URL has 403 Forbidden status code
- Prevent redirect to page/page when reserved term ‘name’ in $_POST when value is a page/post title
- I want to redirect the url to the previous page
- Headers already sent – WordPress core
- Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?
- Import WordPress Post Slug with Forward Slash
- Create a php callback/endpoint for an OAuth script
- Why specific file directory fails to redirect but its parent folder succeeds?
- Cant Access Website – Changed HTTP to HTTPs
- How to remove “YEAR/MONTH/” from uploads URL & redirect old URL to the new form?
- How to redirect user to a page after form submission
- Too many redirects when using wp super cache [closed]
- How do I redirect a user when he is logged in after clicking on a menu
- header and wp_redirect not working. cannot modify header information warning
- 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
- 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”
- Always redirect current user to certain page
- 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
- 301 Redirect all page and post urls from .html to /
- Get query parameters from external url and make a redirection
- wordpress_redirect returns different headers for HEAD and GET requests
- Usage of the login_redirect filter
- Show different page for first time user
- Login/Register redirect user with message
- wp_login_form redirect problem
- Redirect from ip to domain
- How can I redirect users on the new 404 page without plugin?
- How do I write a subdomain redirect?
- Showing my server ip in source code for several links not for all links
- How does WordPress format the url on a 301 when a trailing slash is missing?
- Redirection on domain name
- Redirect only Blog posts to new
- htaccess redirect from specific urls of my site to the homepage
- Can’t make redirect in WordPress
- Unwanted slug in my website
- HTTPS to HTTP rewrite rules not working as expected
- Changing permalinks and redirecting urls
- htaccess 301 Redirect not working from aspx to new WP permalink
- Mass .htaccess URL Forwarding
- How to point a public URL to internal (hidden) server with all links following.
- Redirecting simple big problem
- Wp Remote get with manual redirect
- Add base folder to CPT and 301
- How do I redirect the browser to 404 page, if no posts are found in home page
- Redirect after the registration
- wp_logout_url redirect not working
- How do i make WordPress return 404 instead of redirecting on misspelled page?
- how to redirect non logged users to login page and redirect to another page with saved data?
- WP Redirect with Wild Card Characters
- How to automatically redirect category pages (301) when changing the location of a category in the hierarchy
- 301 Redirects from old WordPress domain
- Unexpected: WordPress redirects to the WP_HOME/WP_SITEURL value
- How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress
- How to make front page temporarily show content of internal page
- How to get user details by name
- redirect after account activation for forum using bbpress and buddypress
- WordPress redirect users from certain countries to subpage of language version
- 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
- WordPress as a Facebook app
- URL Custom Rewrite
- How to handle expired assets/content when user has direct URL
- Best SEO way to redirect from all “posts” to home url
- Lost WordPress website access after changing URL [closed]