Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes

Is it possible to have a CNAME DNS record point to a URL with a path?

DNS records alone cannot do what you want. DNS records only point host names to IP addresses (or in the case of CNAMEs to other host names). You have to configure your server to handle it correctly....
Stephen Ostermiller's user avatar
3 votes
Accepted

Why some search engines show address with www and some not, and how to tell which one needs to be shown

Include a canonical link in your page content: A canonical link element is an HTML element that helps webmasters prevent duplicate content issues in search engine optimization by specifying the "...
Chris's user avatar
  • 156
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

How to set up DNS records / domain files on aplus.net for a custom domain for Heroku?

Although you cannot delete the A record for apex domain, Aplus.net does allow for CNAME-based aliasing. First, generate the dns target for the www subdomain in Heroku, e.g. whispering-willow-5678....
climatebrad'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
2 votes
Accepted

How to protect my files on Heroku

#<Files ~ "\.js$"> # order allow,deny # deny from all #</Files> Yes, you will get a 403 Forbidden with the above code when trying to access any .js file, regardless of the way you ...
MrWhite's user avatar
  • 42.8k
2 votes
Accepted

Is there any SEO impact from hosting on Heroku?

Google is like inspector, if they see in your home, you're living with bad people then they assume you're also bad. For example your host IP is 209.168.14.15 and many (say 20) bad website also host in ...
Goyllo's user avatar
  • 5,507
2 votes
Accepted

How do I continuously run and host Node.js script on Heroku?

You need either a VPS (Virtual Private Server) or perhaps a more powerful Dedicated Server. You will then have root access and create cron jobs and processes that generally aren't permitted on shared ...
Steve's user avatar
  • 8,503
2 votes
Accepted

How to point a subdirectory URL of a static website to a Heroku app?

As tshimkus mentioned, to serve Heroku from a subdirectory you will need to reverse-proxy it from the server that is hosting your domain. This is a much more complicated setup for arguably minimal ...
Maximillian Laumeister's user avatar
2 votes

Configure Apache for multiple web roots based on domain

Apache has functionality for this built in. You need to use three VirtualHost configuration sections. See the Apache documentation for more details and examples. <VirtualHost *:80> ...
Stephen Ostermiller's user avatar
2 votes
Accepted

Moving my domain hosting from Bluehost to Heroku

Since you only have a holding page, you can't be talking about having a problem moving content, so I can only assume this is about how to set up DNS. No matter where your domain is registered you need ...
Steve's user avatar
  • 8,503
2 votes
Accepted

Does google search index by IP address or domain name?

Google indexes by domain name, not by IP address. There is no SEO effect of changing the IP address your website is hosted from (unless the new IP is in a different country, or is an egregious repeat ...
Maximillian Laumeister's user avatar
1 vote

How can I change my Heroku website to a custom domain provided by Bluehost?

Your CNAME isn't correct. www should point to the DNS target Heroku gives you, not to the domain you want to use. Based on your screenshot, it looks like it should point to something starting with ...
Chris's user avatar
  • 156
1 vote

Heroku email server custom domain

As far as I know Heroku is a web app framework and can't be used as a mail server. While Heroku doesn't have an email offering that I know of, you are free to use an email host other than Godaddy. ...
Stephen Ostermiller's user avatar
1 vote

What to do with the heroku subdomain for SEO after getting a custom domain?

Finally got it working thanks to @Stephen Ostermiller's great advice. The following solution will work if your back-end is running on Node.js with Express. First we will create a 301 redirect for all ...
Gitschi's user avatar
  • 61
1 vote

Is there any SEO impact from hosting on Heroku?

The only problems caused by a host for SEO are if it is a well-known host for spam and malicious code or it serves pages too slow. Other than that, the host doesn't matter.
Rob's user avatar
  • 4,638
1 vote

How to redirect a Heroku domain to a custom domain?

A 301 Moved Permanently is a HTTP header sent from the server to the browser instructing the browser to redirect the user to the correct domain name, while at the same time telling search engines ...
Chris Rutherfurd's user avatar
1 vote

Heroku app + 1and1 domains - Custom domain name switches back to default heroku app's domain on click within the web app

You are using Wordpress. You should look up on how to change your domain name in your Wordpress site. You can try following the instructions in this link by going to WordPress Dashboard as an ...
Wit's user avatar
  • 161
1 vote

How to add naked domain (without www) on GoDaddy deployed via Heroku?

There are two ways. Either use URL forwarding or you can use a redirect in your .htaccess file. Try URL forwarding first. URL Forwarding To get this to work, go to the GoDaddy domain information and ...
norcal johnny's user avatar
1 vote

Custom Heroku Domain redirecting to random website

This sounds like an DNS zone file issue which you will need to take up with your DNS provider. If the CNAME record where replaced with an A record as seems to be the case based on the comments then ...
Chris Rutherfurd's user avatar

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