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

AMP Admin admin at ampprod.com
Wed Dec 30 01:11:45 MSK 2009


Thanks.

Regards, 

-Team AMP 
http://www.ampprod.com 

-----Original Message-----
From: merlin corey [mailto:merlincorey at dc949.org] 
Sent: Tuesday, December 29, 2009 3:30 PM
To: nginx at nginx.org
Subject: Re: i've been trying to convert this .htaccess for a week now

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

_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list