On Apr 6, 2008, at 12:44 PM, Matt S Trout wrote:
.htaccess # This one implies a / deployment.
-----------------------
DirectoryIndex myapp.fcgi index.html
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !myapp.fcgi$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.*[^/])$
RewriteRule ^(.*)/$ /$1 [QSA,L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) /myapp.fcgi/$1 [QSA,L]
Isn't it possible in mod_rewrite to use the P flag to pass the
original
URI through so it things it was at / in the first place?
An excellent question to which I don't know the answer. I'll play
around with it later.
-Ashley
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/