Redirect from root to www not working
I created a Redirect rule from https://example.com to https://www.example.com but it doesn't work. I don't have a DNS record for @, but I have one for www which goes to my pages URL. Anyone know why it's not working?
3 Replies
I don't have a DNS record for @This is why Browsers need to be able to resolve a domain before it can ever process a HTTP request. If it cannot resolve (no DNS record) then a HTTP request can never be sent and redirected You'll need to add a record, you can just use a dummy one like type
AAAA
ip 100::
This is what I thought. But when I add the dummy record I just get this page
It seems like my redirect rule is not working
OK, I think I figured it out. I needed
https://example.com/*
and `https://www.example.com/${1}
in my rules