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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 16 Apr 2008, at 00:16, Karl Smith 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> > 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? > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Tried that. Sorry, doesn''t work. On Apr 15, 5:25 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Shouldn''t that be RewriteCond %{REQUEST_URI} ^blog.*Anymore ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 16, 4:29 am, Karl Smith <threadh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Tried that. Sorry, doesn''t work. > > On Apr 15, 5:25 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---