www not working hostinger

mercurycode2002
FREE

16 days 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

$10 Bounty

4 Replies

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


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
HOBBYTop 5% Contributor

15 days 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.


error

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
FREE

15 days 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)