Topic: Apache - /public/.htaccess rewrite directories fails?

On my server I have a directory at the root, /rails/ which contains
other directories with rails projects. In my httpd.conf I have

RewriteEngine On
RewriteLog "logs/rewrite.log"
RewriteLogLevel 9
RewriteCond %{REQUEST_URI} !^/rails/([^/]+)/public/
RewriteRule ^/rails/([^/]+)/?(.*)$ /rails/$1/public/$2 [QSA,L]

So with a GET /rails/test/ you'd get sent to /rails/test/public/ and get
the welcome screen fully functional, except for the link "About your
application

Last edited by Onion Knight (2007-03-02 23:05:40)

Re: Apache - /public/.htaccess rewrite directories fails?

RewriteCond: input='C:/Program
Files/Apache/htdocs/rails/test/public/dispatch.cgi' pattern='!-f' =>
not-matched

The Apache path contains empty spaces. Install Apache in a directory without empty spaces.

Re: Apache - /public/.htaccess rewrite directories fails?

Empty space? Like whitespace in the "Program Files"? Wouldn't a DOS-name like "Progra~1" work?