How to check Wordpress installation is redirecting or not?

kumkumsharma

Administrator
Staff member
If you want to check that wordpress is redirecting your website to another location then you can follow below steps:
  • Login to your SSH as a root user.
  • After that run below command:
Code:
curl -IL http://cp-domain.com
You will get the below output:

Code:
# curl -IL cp-domain.com
HTTP/1.1 301 Moved Permanently <-- domain was redirected
Date: Thu, 17 SEP 2021 16:20: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
Here you can check that redirection happened.
 
Top