How to rewrite this on nginx?
Edho P Arief
edhoprima at gmail.com
Fri Apr 16 10:36:23 MSD 2010
On Mon, Apr 12, 2010 at 12:02 PM, lhmwzy <lhmwzy at gmail.com> wrote:
> apache .htaccess
>
> Rewriteengine on
> Rewriteengine ^search\.shtml$ /search.cgi%{QUERY_STRING}
> Rewriteengine ^([^.]*)/([^.]*)/([^.]*]\.html$ index.cgi?t=$1&c1=$1&p=$3
>
location = /search.shtml {
rewrite ^ /search.cgi?$args;
}
location ~ ^[^.]*/[^.]*/[^.]*\.html$ {
rewrite ^/([^.]*)/([^.]*)/([^.]*]\.html$ /index.cgi?t=$1&c1=$1&p=$3;
}
smarter way would be by replacing the rewrites with direct fastcgi (or
proxy) settings
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list