Redirect from root to www doesn't work without trailing backslash

What is the name of the domain?

frankerino.com

What is the issue you’re encountering

I want to redirect from frankerino.com to www.frankerino.com. This doesn’t work for me unless I use https://frankerino.com/ with the slash at the end. The desired behavior is to just be able to type frankerino.com into the address bar and have it redirect to my site at https://www.frankerino.com, but it currently redirects to https://frankerino.com and says “we’re having trouble finding that site”.

What steps have you taken to resolve the issue?

I’ve tried to alter the “Redirect from Root to WWW [Template]” rule many times to no avail.

What are the steps to reproduce the issue?

Search for frankerino.com.

You don’t have a DNS record for frankerino.com. Use a proxied AAAA record pointing to 100:: if you are just redirecting.

https://cf.sjr.dev/tools/check?01fff820871a453aab51ee9bce607cba#dns

2 Likes

I just tried this, but am getting an error code 522. I added a new DNS record of Type AAAA, Name frankerino.com, content 100::, and it is proxied. Did I do something wrong? Not sure if it’s super relevant, but I’m using a tunnel, so I have one other DNS record of type CNAME, name www, and the content is the tunnel link. Does this change things?

It sounds like your redirect rule is not triggering. Please post a screenshot of it. It should just be a hostname match, and nothing else.

1 Like

Yup it was the redirect rule… Went to look at it after seeing your comment and it looks like I turned it off for some reason in the process of trying to fix/test things. The redirect rule in combination with the new DNS record is now working. Thanks guys!

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.