Redirecionamento

Guys, I have a problem here and I can’t solve it.

I need to redirect the link www.teste.dominio.com to teste.dominio.com

How do I do it here for CloudFlare?

How can I do it through htaccess?

I tried to use the rule and it didn’t work:
RewriteCond Host: (?: Www .)? Subdomain \ .your domain \ .com \ .br
RewriteRule (.*) / Directory $1 [I, L]

Some help?

A Page Rule would do this, but there’s a caveat below.
Match: www.teste.dominio.com/*
Setting: Forwarding URL (301) to https://teste.dominio.com/$1

The problem is that the SSL/TLS certificate Cloudflare provides does not cover www in front of a subdomain:

Cloudflare doesn’t use Apache, so that’s beyond the scope of the Community forum. It’s best to try a forum such as serverfault.com

1 Like

Do I need to have this certificate on www.sub.dominio.com.br?

I will not use the www subdomain.

My problem is that I created a document in PDF format and ended up putting up the wrong site. I’m looking for a solution to open on the correct website. I accidentally put www where it wasn’t supposed to.

Yes.

You will have to, just to do the redirect.

1 Like

Thank you very much. I understood.

1 Like

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