www not working hostinger
mercurycode2002
FREEOP

8 months ago

So I recently deployed a new Project to railway with a custom Domain: backdoorsecurityagency.com . It works greats, but i want it to also work on www.backdoorsecurityagency.com. I added a new CNAME Record to my Hostinger, 18 hours ago but i keep getting this error of the page not existing.

here is what my hosting looks like:
My DNS is working fine but the the website is not being redirected.

I would greatly appreciate it if you could help me in resolving this. TIA

Solved$10 Bounty

Pinned Solution

smolpaw
HOBBY

8 months ago

Just pointing www to backdoorsecurityagency.com doesn’t ensure www.backdoorsecurityagency.com redirects to backdoorsecurityagency.com
You need to also add a redirect which railway doesn't support.

If you were to follow @error's solution, your app will also be accessible on www but you want the redirection to non-www
Your easiest option would be to move to cloudflare dns. You need to go to namecheap and change domain's nameservers to cloudflare.
Then in cloudflare you can add the redirect.

A similar ticket on this matter was opened not too long ago: https://station.railway.com/questions/i-would-like-to-setup-a-www-redirect-to-d883ff50
if you need any help regarding setting up records in cloudflare then let me know.

4 Replies

noahd
EMPLOYEE

8 months ago

Are you aiming to have www.backdoorsecurityagency.com resolve to the site or redirect www -> backdoorsecurityagency.com?


noahd
EMPLOYEE

8 months ago

Based on that I believe you would go to networking tab in the service running your site. And then add www.backdoorsecurityagency.com to it.

Attachments


smolpaw
HOBBY

8 months ago

Just pointing www to backdoorsecurityagency.com doesn’t ensure www.backdoorsecurityagency.com redirects to backdoorsecurityagency.com
You need to also add a redirect which railway doesn't support.

If you were to follow @error's solution, your app will also be accessible on www but you want the redirection to non-www
Your easiest option would be to move to cloudflare dns. You need to go to namecheap and change domain's nameservers to cloudflare.
Then in cloudflare you can add the redirect.

A similar ticket on this matter was opened not too long ago: https://station.railway.com/questions/i-would-like-to-setup-a-www-redirect-to-d883ff50
if you need any help regarding setting up records in cloudflare then let me know.


noahd

Based on that I believe you would go to networking tab in the service running your site. And then add www.backdoorsecurityagency.com to it.

mercurycode2002
FREEOP

7 months ago

I did add the domain here, but since I am on the free tier I only have 2 domains possible(1 provided by railway and 1 is my own backdoorsecurityagency.com)


Status changed to Solved chandrika 7 months ago


Loading...