Question
How can I verify a website is redirecting?
Answer
Curl is a great utility to verify that a domain is redirecting. Here's an example:
$ curl -ilv domain.com
* Trying 112.113.114.115...
* TCP_NODELAY set
* Connected todomain.com (112.113.114.115) port 80 (#0)
> GET / HTTP/1.1
> Host:domain.com
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Connection: Keep-Alive
Connection: Keep-Alive
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 706
Content-Length: 706
< Date: Thu, 09 Jul 2020 20:39:32 GMT
Date: Thu, 09 Jul 2020 20:39:32 GMT
< Server: LiteSpeed
Server: LiteSpeed
< Location: https://domain.com/
Location: https://domain.com/
..
..
<p>The document has been permanently moved.</p>
</div></div></body></html>
* Connection #0 to host domain.com left intact
* Closing connection 0
You can manage redirects through your cPanel interface via cPanel > Domains > Redirects