Ok, I have a hosting account with HostMonster. I have created a subdomain, namely projects.mydomain.com, this actually points to http://mydomain.com:12009/ (it's a RoR Application and they run it on a different port)
So when I goto projects.mydomain.com the address that appears in the address bar is http://mydomain.com:12009/(rest of the path if any).
Can Rewrite make it so that the address bar keeps saying project.mydomain.com/(rest of path if any)?
Here's the current rewrite rules they put in the .htaccess file for me.
RewriteCond %{HTTP_HOST} ^projects.mydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.projects.mydomain.com$ [OR]
RewriteRule ^(.*)$ "http\:\/\/mydomain\.com\:12009\/$1"
I've tried rewriting from http:mydomain.com:12009 to projects.mydomain.com but that seems to redirect, I can't figure this out. Is there a way to show the 'pretty' url and not the base domain and port number?
Thanks