[LRUG] FW: Redirects on heroku
Anthony Green
Anthony.Green at bbc.co.uk
Tue Aug 3 05:19:35 PDT 2010
Can any heroku users know what the answer is ?
------ Forwarded Message
From: Michael Smethurst <
Subject: Redirects on heroku
Hiya
Just following on from lunchtime chat...
I've managed to get cctvspotr running on heroku and set it up with 2 custom
domains: www.cctvspotr.org and cctvspotr.org
I've registered www.cctvspotr.org and pointed it at heroku's dns. All fine
http://www.cctvspotr.org
http://cctvspotr.org
Now I'd like to get cctvspotr.org{/whatever} to 301 to
www.cctvspotr.org{/whatever}. But can't find any helpful hints. The nearest
I found was:
http://docs.heroku.com/custom-domains#redirecting-traffic-to-specific-domain
I tried adding that code to my application controller with TheDomain =
'www.cctvspotr.org' but that just redirected cctvspotr.org to
cctvspotr.orgwww.cctvspotr.org
Am sure there's a proper forum to ask this on somewhere but not sure where
Any help much appreciated
Cheers
michael
------ End of Forwarded Message
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the Chat
mailing list