If you want to check that wordpress is redirecting your website to another location then you can follow below steps:
You will get the below output:
Here you can check that redirection happened.
- Login to your SSH as a root user.
- After that run below command:
Code:
curl -IL http://cp-domain.com
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