I have a static site hosted on Rackspace (e.g. example.com) with a subdomain (e.g. subdomain.example.com) that is using a redirect script to point a Heroku app. I would like to mask the Heroku app's URL and instead display the subdomain's URL.
Here is the redirect script I am using which is hosted at subdomain.example.com:
<?php
header("Location: http://example.herokuapp.com/railsapp/new");
?>
Is there anything I can do in the redirect script to mask the URL?