Looking for rewrite rules
Crazy-Achmet
nginx-forum at nginx.us
Thu May 7 17:00:28 MSD 2009
Hey,
i'm new to NGINX and this community so i hope this is the right place to post my question.
I have this .htaccess which is working perfect on my apache:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^(+)/robots\.txt$ robots.txt
RewriteRule ^members/page([0-9]+).html$ index.php?page=$1
RewriteRule ^whatsnew/entries/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newentries&cutoffdate=$1&page=$2
RewriteRule ^whatsnew/entries/(([0-9]?|-)+/?)$ browsecategory.php?do=newentries&cutoffdate=$1
RewriteRule ^whatsnew/posts/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newposts&cutoffdate=$1&page=$2
RewriteRule ^whatsnew/posts/(([0-9]?|-)+/?)$ browsecategory.php?do=newposts&cutoffdate=$1
RewriteRule ^whatspopular/(+)/$ browsecategory.php?do=popentries&orderby=$1
RewriteRule ^members/(+)/page([0-9]+).html$ browsecategory.php?do=member&userrewrite=$1&page=$2
RewriteRule ^members/((|-)+/?)$ browsecategory.php?do=member&userrewrite=$1
RewriteRule ^(+)/members/(+)/page([0-9]+).html$ browsecategory.php?userrewrite=$2&catrewrite=$1&page=$3
RewriteRule ^(+)/members/((|-)+/?)$ browsecategory.php?userrewrite=$2&catrewrite=$1
RewriteRule ^(+)/((|-)+)/$ showentry.php?entryrewrite=$2&catrewrite=$1
RewriteRule ^(+)/(+)/page([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&page=$3
RewriteRule ^(+)/(+)/epage([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&epage=$3
RewriteRule ^(+)/page([0-9]+).html$ browsecategory.php?catrewrite=$1&page=$2
RewriteRule ^(+)/?$ browsecategory.php?catrewrite=$1
My question is, whats the right syntax for NGINX. I was playing around a little bit but i couldn't get it to work.
Could you help me please?! ;) Thanks in advance
Greetings from Germany
Florian
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1853,1853#msg-1853
More information about the nginx
mailing list