Who Can Help me switch a Nginx rewrite rules
cw723
nginx-forum at nginx.us
Mon Oct 11 02:00:25 MSD 2010
RewriteRule
/(?:attachment)/.*\.(?:gif|jpg|jpeg|png|psd|wav|mid|asf|wma|wmv|rm|bmp|exe|rar|zip|msi|ram|doc|xls|mp3|mpg|swf|ra|mp4|rmp|avi|tar|flv|rmvb|torrent)
/images/err.gif [I,O]
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9\_]+.html).*$ $1/simple/index.php?$2
RewriteRule ^(.*)/([a-zA-Z]+).html.*$ $1/$2.php
RewriteRule ^(.*)/sitemap.xml$ $1/sitemap.php
RewriteRule ^(.*)/([a-zA-Z]+)-(.*.html.*)$ $1/$2.php\?$3
RewriteRule ^/([a-zA-Z]+).html.*$ /$1.php
RewriteRule ^(.*)/sitemap.xml$ $1/sitemap.php
RewriteRule ^(.*)/archiver/ /simple/ [R]
RewriteRule ^(.*)/tid-(\d+)\.html /simple/index.php?t$2.html [R]
RewriteRule ^(.*)/fid-(\d+)\.html /simple/index.php?f$2.html [R]
RewriteRule ^(.*)/fid-(\d+)-(\d+)-1.html /simple/index.php?f$2.html
[R]
RewriteRule ^(.*)/forum-(\d+)-(\d+)\.html$ $1/thread.php?fid=$2 [R]
RewriteRule ^(.*)/thread-(\d+)-(\d+)-(\d+)\.html$ $1/read.php?tid=$2
[R]
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)simple/([t|f].+).html$ /simple/index.php?$2.html
[NC,L]
WHo Can help me switch
I just use the switch website
But RewriteRule ^(.*)/([a-zA-Z]+)-(.*.html.*)$ $1/$2.php\?$3
This rules still cant use
thank you
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,139096,139096#msg-139096
More information about the nginx
mailing list