I have a subdomain, blog.mysite.com, that points to /home/myname/
public_html/blog
My rails app sits at /home/myname/myrailsapp
I have a symlink from /home/myname/public_html -> /home/myname/
myrailsapp/public
And another symlink from /home/myname/myrailsapp/public/blog -> /home/
myname/blog
This way my rails app and the blog subdomain sit outside of the /
public_html. Just makes it easier to update the rails app so that I
don't mistakenly delete the blog subdomain. At worst, I would only
delete a symlink.
OK?
I need a .htaccess rewrite so that http://blog.mysite.com does not get
rewritten into rails. So I tried what is suggested in the
default .htaccess:
RewriteCond %{REQUEST_URI} ^/blog.*
RewriteRule .* - [L]
But that does not work, the rails app works just fine.
Anyone have some suggestions for a rewrite that will work in this case?