Mobile app version of vmapp.org
Login or Join
Angie530

: CNAME is causing redirect error? I recently deployed a website hosted with Node.js. I then created a CNAME record for my website, and it is saying that my website is down, because of the page

@Angie530

Posted in: #Cname #Dns

I recently deployed a website hosted with Node.js. I then created a CNAME record for my website, and it is saying that my website is down, because of the page redirecting too many times. I'm using Cloudflare for my DNS, and the CNAME record was "www" for "https://example.com/" on example2.com

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angie530

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

Without the redirect code to review I would guess that this is a server side issue rather than a DNS issue per-sey. It sounds like a redirect loop has occured where trying to access the default URL is redirecting to an alternate URL that is then redirecting back to the default URL...

IE: domain.com is redirecting to domain.com/page-1 and domain.com/page-1 is redirecting to domain.com or something similar to that. This can also be an issue across sites if your site redirects to another site that is redirecting back again.

If you are using Google Chrome you can open the Chrome inspector window (network tab) and in the network tab there is a button with a big circle. If you click on this button then it will preserve the log upon navigation. Then refresh the page and it doesn't matter how many redirects are done you will be able to see the record of it in the network log which will tell you what redirects are being done which will also indicate for you where to look to fix it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme