[Catalyst] RFC for plugin to strip script name from URI;
plugin name + code review
Ashley
apv at sedition.com
Sun Apr 6 21:41:46 BST 2008
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
More information about the Catalyst
mailing list