Skip to main content
23 votes

Do I need a certificate to redirect via CNAME?

Neverever's answer is correct. You do need an SSL certificate. I wanted to add that it is because there is no such thing as a CNAME redirect. A CNAME is not a redirect. A CNAME instructs the ...
Stephen Ostermiller's user avatar
12 votes
Accepted

Do I need a certificate to redirect via CNAME?

Yes, you'll still need an SSL certificate for abc.example.com Due to the nature of CNAME redirection, when you type abc.example.com in the browser, the URL stays abc.example.com, and this is where ...
Rick Su's user avatar
  • 281
8 votes
Accepted

I have a CNAME for www, how do I redirect root domain there?

You need an A record for your domain root, pointing to the IP address of your server. Only once you have that in place (thus directing requests for example.com to your server) will your .htaccess ...
EEAA's user avatar
  • 258
7 votes

Can a website have multiple CNAME?

Yes. In fact, you probably already have multiple CNAME records. (eg. you'll probably already have one for www.) However, you can't have the same name pointing to different canonical names (one to ...
DocRoot's user avatar
  • 4,297
5 votes

How to forward emails to my custom domain to my Gmail account?

Simple solution: Use http://improvmx.com/ and then set your MX records and you are done.
Nate Bunney's user avatar
5 votes
Accepted

CloudFlare DNS: How to setup a GitHub Repository to a custom sub domain?

This can easily be done by adding a few settings to CloudFlare and then later GitHub. 7 Steps on adding a subdomain to CloudFlare Login to Cloudflare Use the drop-down menu in the upper left of your ...
Simon Hayter's user avatar
5 votes

Creating an A record and then a CNAME to point a subdomain to a different server gives an error message

A and CNAME both are types of DNS records, that can be applied to a domain name. But they are mutually exclusive:[1] A resolves a domain name query to an IP address, CNAME resolves it to an other ...
x a's user avatar
  • 151
4 votes

Can a website have multiple CNAME?

Yes, no and no. Yes, You can have plenty of unique cnames. E.g. www. and preview. of the domain example.com are allowed. You can have as many as you want, but: No, you can not have multiple CNAMEs ...
Martijn's user avatar
  • 6,806
4 votes
Accepted

Accidently changed CNAME entries for "autodiscover" and "_domainconnect", will that hurt my website?

You don’t need either of these resource records for your website to work correctly. You only need the autodiscover resource record if you’re using the email service provided by 1und1.de with your ...
Anthony Geoghegan's user avatar
4 votes

Why is CNAME pointing to IP instead of URL?

Yes, this is the default behavior. The web server should be configured to serve from the correct document root when the request comes from a specific subdomain. For example, if you use apache, you ...
Kannan's user avatar
  • 2,343
3 votes

redirect www to non-www (CNAME needed?)

To implement a redirect, your www subdomain must resolve to a web server that issues a redirect to your non-www domain. It doesn't matter whether you use A records or CNAME records to make that ...
Stephen Ostermiller's user avatar
3 votes

CNAME pointing towards a Heroku page isn't working

You can't just set a CNAME and hope for the best when it comes to Heroku. You actually need to log into the Heroku admin panel and configure the CNAME record that you are creating so that Heroku knows ...
Chris Rutherfurd's user avatar
3 votes
Accepted

Firebase Custom Domain - add admin subdomain?

The mistake here is not understanding the what A and CNAME records support: A records will only support IP addresses. CNAME records will only support valid domains. Therefore using a full URL path ...
Simon Hayter's user avatar
3 votes
Accepted

How can I create a Google Site and use it with a Google Domain?

It seems like you did it backwards and missed a few steps. Here are the full instructions from start to finish. In Google Domains: Click My domains in the navbar and then click the domain name. ...
norcal johnny's user avatar
3 votes
Accepted

Our alias domains are showing up in the search results, how can we get it to show just our main domain?

Canonical Tag is only a suggestion to search engines. They may or may not follow it. Please correct me if I am incorrect, but I am assuming that your domain names are using different languages? If not,...
Josh Salganik's user avatar
3 votes
Accepted

Will client sites on clientsite.mydomain.com affect SEO at www.mydomain.com?

Will googling for "mydomain.com" also give results for "petterson.mycompanydomain.com"? (making my client an unnecessary competitor) Not after you set up a 301 redirect. If it's indexed right now,...
Emirodgar's user avatar
  • 3,817
3 votes
Accepted

Heroku apps, DNS and MX records

Putting a CNAME record at the root of your domain breaks email. If you want email to work, you just can't do that. Heroku has instructions for this case. You need to use a DNS host that supports "...
Stephen Ostermiller's user avatar
3 votes

My root domain is not resolving to my server, but the www. subdomain works fine

To resolve your host name to an IP address you need either an A or CNAME record for it. For a bare domain, it has to be an A record, a CNAME only works for sub-domains. You don't have an A record ...
Stephen Ostermiller's user avatar
3 votes

Does pointing a URL via CNAME to another domain redirect via endpoint?

A CNAME is not a redirect. When you use a CNAME, the traffic for both domains is sent to the same IP address. The behavior of the site that users see when you use a CNAME record is identical to ...
Stephen Ostermiller's user avatar
3 votes

Do CNAME subdomains redirect to their target?

No, a CNAME does not cause a redirect. A CNAME is a DNS alias that says "The server for this host name is located at the same IP address as the server for this other host name." It is ...
Stephen Ostermiller's user avatar
3 votes
Accepted

CNAME works for nslookup but not curl

The greatest benefit I derive from StackExchange is that asking the question forces me to state the problem in detail. In this case, I through in the parenthetical “(Cloudfront)” solely for ...
Michael Lorton's user avatar
3 votes
Accepted

Do I need to change CNAME record for email redirecting?

You are both right and wrong. For email delivery to work, DNS wise all that is required is a valid MX record (but an A record would work absent an mx record). That only covers the MTA though. In ...
davidgo's user avatar
  • 8,061
3 votes
Accepted

Should I use CNAME or Apache virtual host for www?

If the URL is changing from example.com to www.example.com for users, then there IS an actual redirect happening. However it has nothing to do you with CNAME record, because CNAMEs can't cause ...
Stephen Ostermiller's user avatar
3 votes

Mirror a certaing page on multiple domains

There is a LOT more to this then using a CNAME record. A CNAME record will only indirectly convert a subdomain to an IP address. In addition to setting up a CNAME record you will need to modify the ...
davidgo's user avatar
  • 8,061
2 votes
Accepted

Configure 3 domains in CloudFlare, with 2 redirecting to the first one, for a wordpress installation in openshift

Although matts answer gave me some direction for the "page rule" tip in cloudflare, a bunch of stuff still had to be made. I'm assuming you already have an application running in openshift: let's ...
Somebody still uses you MS-DOS's user avatar
2 votes

Configure 3 domains in CloudFlare, with 2 redirecting to the first one, for a wordpress installation in openshift

If you don't need to redirect mydomain.com.co/url-example to mydomain.com/url-example then some simple page rules in cloudflare for the 2 other domains to do a 301 redirect back to the main domain ...
brass's user avatar
  • 201
2 votes

Client Provided CName record redirecting/forwarding to my domain with masking

CNAMEs are not really redirects - they're a DNS record type that allows you to easily manage multiple domains/subdomains pointing to the same IP address, without having to change every one them if the ...
Tim Malone's user avatar
  • 1,256
2 votes
Accepted

How to allow customers their own subdomain address to our web app?

You should be able to do this if the DNS Zone Admin for www.somecompany.example adds ourapp.somecompany.example as a subdomain entry pointing to the IP of www.ourapp.example on their DNS server and ...
MaKaDev's user avatar
  • 96
2 votes

How to connect my custom domain to github.io

I see the question is rather old, but anyway, The name of your repository should be "username.github.io", not "repositoryname" Github documentation you want to follow step by ...
Lukas's user avatar
  • 99

Only top scored, non community-wiki answers of a minimum length are eligible