Introduction
In some cases, you may see a redirect on your domain name that you are not sure of the source of. In some instances, you can find the source of this redirect via the headers of the site. This can be easily done via the CURL command over SSH.
Procedure
To do this, please follow these steps:
- Log into your server via SSH
- Run the following command.
curl -I yourdomainname.come
Once the above command is ran, you will see output similiar to the following:
[root@server ~]# curl -I yourdomain.com
HTTP/1.1 303 See Other
Date: Fri, 23 Jul 2021 05:04:24 GMT
Server: Apache
X-Redirect-By: WordPress
Content-Language: en
Location: https://yourdomain.com
Content-Type: text/html; charset=UTF-8
In the above output, the important line contains "X-Redirect-By". This is the source of the redirection if there is one found. Most common CMS's will use the X-Redirect-By header to indicate a source of a redirect. Some common CMS X-Redirect-By headers look as follows:
- X-Redirect-By: WordPress
- X-Redirect-By: Joomla
- X-Redirect-By: Moodle
Comments
0 comments
Article is closed for comments.