Introduction
You may wish to determine if WordPress is redirecting your URL to a different location. The procedure below will show you a reliable method to accomplish this.
Procedure
- Access your server using SSH as the root user
- Use the 'curl' tool to visit your site and follow any redirects automatically:
curl -IL http://cp-testsite.com
- The headers returned by curl will tell you if a redirect was performed, and should include where it came from:
HTTP/1.1 301 Moved Permanently <-- domain was redirected
Date: Thu, 20 Aug 2020 15:26:38 GMT
Server: Apache <-- Web Server that responded
X-Redirect-By: WordPress <-- Application/Service that redirected it
Location: https://cp-test-wordpress.com/ <-- Redirect destination
Content-Type: text/html; charset=UTF-8
Comments
0 comments
Article is closed for comments.