Welcome! Log In Create A New Profile

Advanced

Who Can Help me switch a Nginx rewrite rules

October 10, 2010 06:00PM
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
Subject Author Posted

Who Can Help me switch a Nginx rewrite rules

cw723 October 10, 2010 06:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready