I want to redirect www.subdomain.domain.com to domain.com

I just bought the domain https://www.national-park.com from Expired domain. The domain has many strong backlinks from Wiki, .gov and .edu domain. But the problem is almost backlinks link to www subdomain (www.subdomain.national-park.com) and I can’t redirect 301 them to main website.

I try to redirect 301 www.subdomain to main website but only non www subdomain can point to main website

When I type www subdomain it has error below: “This site can’t provide a secure connection www(.)acadia(.)national-park(.)com uses an unsupported protocol. ERR_SSL_VERSION_OR_CIPHER_MISMATCH Unsupported protocol The client and server don’t support a common SSL protocol version or cipher suite.”

This is code I use on .htaccess file:

> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^acadia\.national\-park\.com$ [OR]
> RewriteCond %{HTTP_HOST} ^www\.acadia\.national\-park\.com$
> RewriteRule ^/?$ "https\:\/\/www\.national\-park\.com\/welcome\-to\-acadia\-national\-park\/" [R=301,L]

I use Cloudflare and I add subdomain via cloudflare.
So what can I do now? I neend’t SSL on www subdomain so can you give me code to make www subdomain don’t point to https:www.subdomain or something to help me to redirect 301 www subdomain to main website.
Thank you

The Cloudflare Universal SSL certificate only covers the domain and one level of subdomain (national-park.com and *.national-park.com). To cover *.subdomain.national-park.com you will need to use the Cloudflare Advanced Certificate Manager.


Thank you.
But I needn’t SSL on www subdomain.
I only need redirect 301 www subdomain to main website.
So do you have another solution?

Even just to redirect, if the request is made using HTTPS then you need a certificate.

The only other options are:

  • make sure you have not got a HTTP->HTTPS redirect on Cloudflare so requests by HTTP will redirect before they are converted to HTTPS (HTTPS will always give an error for the reason above)
  • set the DNS record to “DNS only” and do the redirect on your origin. You will still need an SSL certificate there that covers that subdomain if you want to redirect HTTPS requests for those subdomains.
1 Like

I do as option 2 and it works. Thank you very much. I only want to redirect 301 http www subdomain to main website, I needn’t redirect htttps www subdomain so I do as option 2: set the DNS record to “DNS only”

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