Redirect domain to www

Hi there,

My current page rule wont work for some reason.
The outcome I want is that it should always redirect to www.

My current page rule is:

When I write “fredde.me” in my web browser it just says the server isn’t found.
I have “Always use HTTPS” set in the SSL/TLS app as well.

Help please!

You need to set an A record for fredde.me

The client first resolves the name before it can follow any redirect.

nslookup fredde.me
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
*** Can’t find fredde.me: No answer

But, I’m using Google Cloud Storage for my www domain, what should I point just the domain to since it only is there for a redirect?

Try

fredde me CNAME www.fredde.me

But this could be dangerous if you are using .fredde.me for mail handling as well. Other records may be ignored when there is a CNAME on the root. But as long as the client does not know where to connect to every attemt will fail with a DNS error.

Whats the record type for www.fredde.me? A or CNAME?

I’ll try.
www.fredde.me is a CNAME to c.storage.googleapis.com.

It seem to work on my side now, what about yours?
I’ll doublecheck so my mail still works.

Works.

Just keep an eye on your mails and other records in this zone.
It seems to be fine currently:

;; ANSWER SECTION:
fredde.me. 3599 IN MX 5 alt2.aspmx.l.google.com.
fredde.me. 3599 IN MX 1 aspmx.l.google.com.
fredde.me. 3599 IN MX 10 alt4.aspmx.l.google.com.
fredde.me. 3599 IN MX 5 alt1.aspmx.l.google.com.
fredde.me. 3599 IN MX 10 alt3.aspmx.l.google.com.

3.6.2. Aliases and canonical names

[snip]

If a CNAME RR is present at a node, no other data should be
present; this ensures that the data for a canonical name and its aliases
cannot be different. This rule also insures that a cached CNAME can be
used without checking with an authoritative server for other RR types.

[snap]

1 Like

If you need to capture also additional pages outside of the homepage you need to add a * to the end of the matched string and a /$1 at the end of the redirect URL.

This topic was automatically closed after 14 days. New replies are no longer allowed.