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
1. Log into your server with SSH as 'root'. Or use the WHM: Terminal Feature.
2. On the command-line, use this command.
Example domain:
cp-testsite.com
Command:
curl -IL http://cp-testsite.com
3. Observe the output. Below will have markers to show redirection.
# curl -IL cp-testsite.com
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/ <-- New URL being used
Content-Type: text/html; charset=UTF-8
In the above output, we can see a redirect happened, and WordPress was responsible.
This information should be useful in understanding what is happening with your domain.
WordPress provides some documentation that shows where on your WordPress installation where redirect can take place.
Comments
0 comments
Article is closed for comments.