Welcome Guest | Login

many sites .htaccess

Hey everyone.

I've launched two apps under hosting rails without problem. The tutorials have been great. Launching the third has got me in some trouble.

I think it's an .htaccess problem, but can't prove it. I have an app called rounds and an app called clinicresearch. Is this how the .htaccess file should look?

#Apache options
#AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

# If you don't want Rails to look in certain directories,
# use the following rewrite rules so that Apache won't rewrite certain requests
#
# Example:
 RewriteCond %{REQUEST_URI} ^/rounds.*
 RewriteCond %{REQUEST_URI} ^/clinicresearch.*
        RewriteRule .* - [L]
####

Thanks in advance,
Bryce

2007-01-04 01:59 PM

Hi there - you should probably get rid of this line under the clinic research

       RewriteRule .* - [L]

and make sure you get requests to rails.

Also - are all your apps on Rails?  If one is not you'll need to add a RewriteEngine Off to the .htaccess of that non-rails app.

Cheers,

~William

2007-01-05 04:44 PM

Thanks William. All my apps are on rails. I'll modify the .htaccess and let you know how it goes

2007-01-05 05:06 PM


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