What is the name of the domain?
What is the issue you’re encountering
Trying to use Cloudflare redirect rules to set up a 301 from http://khamalacopy.com to https://mayakhamala.com, but it is not working. Not sure what I’ve done wrong.
Trying to use Cloudflare redirect rules to set up a 301 from http://khamalacopy.com to https://mayakhamala.com, but it is not working. Not sure what I’ve done wrong.
You can use the redirect checker. I see that the request was redirected 2 times.
https://www.whatsmydns.net/redirect-checker?q=http%3A%2F%2Fkhamalacopy.com
It definitely works, both for HTTP and HTTPS:
% curl -svo /dev/null http://khamalacopy.com
...
< HTTP/1.1 301 Moved Permanently
< Date: Tue, 17 Sep 2024 09:18:35 GMT
< Content-Type: text/html
< Content-Length: 167
< Connection: keep-alive
< Cache-Control: max-age=3600
< Expires: Tue, 17 Sep 2024 10:18:35 GMT
< Location: https://mayakhamala.com
< Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=LTQSumhaWdRug90IFAprEZAhTx8yLvchtBzoEx9wZTWk%2FHfjtuRgTEMRNw8R4%2BRzSdlav25Ia1K5V%2FW0wR3t2PMqP%2BIIdcOV1iFbPkww3ioskhSN4jURIUspfl%2FSIqx5QwY%3D"}],"group":"cf-nel","max_age":604800}
< NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< Server: cloudflare
< CF-RAY: 8c48027f3d6d63a7-LHR
< Cf-Team: 22a0dfe377000063a7ce38e400000001
<
{ [167 bytes data]
* Connection #0 to host khamalacopy.com left intact
% curl -svo /dev/null https://khamalacopy.com
...
< HTTP/2 301
< date: Tue, 17 Sep 2024 09:18:48 GMT
< content-type: text/html
< content-length: 167
< location: https://mayakhamala.com
< cache-control: max-age=3600
< expires: Tue, 17 Sep 2024 10:18:48 GMT
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=CNoYmI41GXC%2Biff7tUxsWIIHuSpZ4xQ3z0T%2FwdVXCjSJfEamylGAgjUXm1z%2FOxDntzQkSD1WsPt15mLrpXb%2BJmW9W7lDqaU6woadJ2Ki9cVl4wiupOzWVBdSsHcQQ4ddSLw%3D"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< server: cloudflare
< cf-ray: 8c4802ce180763a7-LHR
< cf-team: 22a0e014c2000063a7ce512400000001
<
{ [167 bytes data]
* Connection #0 to host khamalacopy.com left intact
Thanks to those who replied. I’ll chalk my confusion up to beginners’ impatience and browser caches. Indeed it is working just fine.