.htaccess to pass/ignore directory

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?

On 16 Apr 2008, at 00:16, Karl S. wrote:

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.*
Shouldn’t that be RewriteCond %{REQUEST_URI} ^blog.*
?
Fred

Tried that. Sorry, doesn’t work.

On Apr 15, 5:25 pm, Frederick C. [email protected]
wrote:

Shouldn’t that be RewriteCond %{REQUEST_URI} ^blog.*

Anymore ideas?

I can’t enable logging. I don’t have access to httpd.conf.

Turn on the mod_rewrite logging so tht you can see exactly what is
going on.

Is there something else I can try?

On Apr 16, 4:29 am, Karl S. [email protected] wrote:

Tried that. Sorry, doesn’t work.

On Apr 15, 5:25 pm, Frederick C. [email protected]
wrote:

Shouldn’t that be RewriteCond %{REQUEST_URI} ^blog.*

Anymore ideas?
Turn on the mod_rewrite logging so tht you can see exactly what is
going on.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs