i've been trying to convert this .htaccess for a week now

merlin corey merlincorey at dc949.org
Wed Dec 30 00:29:57 MSK 2009


On Tue, Dec 29, 2009 at 1:28 PM, merlin corey <merlincorey at dc949.org> wrote:
>
>> RewriteCond %{REQUEST_FILENAME} -f [OR]
>>
>> RewriteCond %{REQUEST_FILENAME} -d
>
> This part of course with try_files in root location.
>
>>
>> RewriteRule .+ - [L]
>>
>
> Not really sure what this one is checking...
>
>>
>> RewriteRule ^([A-Za-z0-9_-]+)$ profile.php?ID=$1 [QSA,L]
>>
>
> Regular expression location with captures again.
>
> -- Merlin
>

Actually these last few rules are all for root location try_files like so:
location / {
  try_files $uri $uri/ /profile.php?ID=$uri;
}

-- Merlin



More information about the nginx mailing list