Welcome Guest | Login

ignore subdirectory

I have multiple apps set up on one account and used the walkthru to set them up. That works fine unless the subdomain I want is not a RoR project. It seems like this should be an easy .htaccess trick to make rails ignore the directory completely, which it does if i call it by the folder but not the subdomain. For example, I have set up www.domain.com/test . Test is written in PHP and I have the subdomain set up to access it at test.domain.com. It works at www.domain.com/test but not test.domain.com.

  RewriteCond %{REQUEST_URI} ^/test.*
  RewriteRule .* - [L]

This is currently what is in the .htaccess and I am assuming it is incorrect for what I want but I do not know how to fix it. Any help would be appreciated.

2008-08-18 11:08 AM

Hi Skindogz,

Please make sure that you have followed the steps given in the wiki link.

http://www.hostingrails.com/forums/wiki_thread/6

2008-08-18 12:41 PM

Hi Vinayan,

I have followed those steps and that is why I am stuck. As I stated in the first post, after all those steps the subdomain works fine if its a RoR project but if not then it does not work for me. I guess what I did not realize before is that although it does actually work if I access it directly, it does not recognize the default index.php as the index page. It just gives a "404 The requested URL / does not exist." error instead. Is there any way to fix that?

2008-08-18 01:00 PM

Could you please update us through a support ticket with the exact domain name with which the issue is there so that we can look into it more deeply.

2008-08-18 02:22 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.