cname

Heroku/GoDaddy: send naked domain to www [closed]

寵の児 提交于 2019-11-26 12:49:29
问题 I am trying to figure out how to get the naked domain for my website to redirect to the www domain. I am using Heroku and have the domain from GoDaddy. Because of Heroku, my A records are already set up as: @: 75.101.145.87 @: 75.101.163.44 @: 174.129.25.170 And my www CNAME points to proxy.heroku.com. I\'ve been looking all over the internet, but can\'t find a simple, free answer for how I can do this redirect. Some answers discuss using paid services, which I don\'t want to do, and others

How To Detect An Incoming Request (With PHP Script) From a CNAME Subdomain?

拥有回忆 提交于 2019-11-26 12:16:32
问题 We have a simple php based redirection application. Here\'s an example: spiderman.com/redirection/redirect-to-marvel/ The php script is in the \"redirection\" folder and let\'s say it will redirect the above link to marvel.com NOW... What if I want to create a totally different subdomain called try.superman.com which redirects using a CNAME to spiderman.com/redirection/ so that if I open this url: try.superman.com/redirect-to-marvel/ it will actually forward to spiderman.com/redirection