RewriteEngine on RewriteCond % !^$
RewriteRule uploads/(.*).(php)$ ¨C [F]
RewriteRule data/(.*).(php)$ ¨C [F]
RewriteRule templets/(.*).(php)$ ¨C [F]
RewriteEngine On
RewriteRule ^list-([0-9]+)\.html$ /plus/list.php?tid=$1 [L]
RewriteRule ^list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 [L]
RewriteRule ^([0-9]+)\.html$ /plus/view.php?aid=$1 [L]
RewriteRule ^view-([0-9]+)-([0-9]+)\.html$ /plus/view.php?aid=$1&pageno=$2 [L]
RewriteRule ^index\.html$ /default.php [L]
这个静态规则怎么转换成Nginx的静态规则
你需要先创建一个你的站点的nginx配置文件,可以搜索一下nginx配置站点,然后在配置文件中写上你的伪静态规则,具体写法可以百度。