I have a plain php app on Heroku, and per their recomendations I have my DNS for custom domain pointing to “www.biglikeco.com”. Entering “biglikeco.com” doesn’t point anywhere.
What is the best way to redirect all traffic going to “biglikeco.com” to “www.biglikeco.com”, in the context of a php app on Heroku?
Thank you.
This is a generic PHP redirect script I created for you that you can append to any global include file you have that will do what you want:
Or with .htaccess: