谁会伪静态规则,帮忙看看这个咋转换成nginx
规则是apache的 怎么给搞成 nginx
RewriteEngine On
RewriteBase /
RewriteRule ^demo/([0-9]+).html /plus/demo.php?aid=$1
RewriteRule ^demopic/([0-9]+).html /plus/demopic.php?aid=$1
RewriteRule ^down/([0-9]+).html /plus/download.php?open=0&aid=$1
#404
ErrorDocument 404 /404.html
#301
#安全设置 禁止以下目录运行指定php脚本
RewriteCond % !^$
RewriteRule a/(.*).(php)$ – [F]
RewriteRule data_5f13edda81fd7/(.*).(php)$ – [F]
RewriteRule images/(.*).(php)$ – [F]
RewriteRule css/(.*).(php)$ – [F]
RewriteRule js/(.*).(php)$ – [F]
RewriteRule style/(.*).(php)$ – [F]
RewriteRule skin/(.*).(php)$ – [F]
RewriteRule ask/(.*).(php)$ – [F]
RewriteRule templets/(.*).(php|htm)$ – [F]
RewriteRule uploads/(.*).(php)$ – [F]
RewriteRule include/customfields.func.php$ – [F]
#RewriteRule ^tags\.html$ tags\.php
RewriteRule ^tags/(.*)_([0-9]+)\.html$ tags\.php\?\/$1\/$2 [L]
RewriteRule ^tags/(.*)_([0-9]+)\.html$ tags\.php\?\/$1\/$2\/ [L]
RewriteRule ^tags/(.*)\.html$ tags\.php\?\/$1
RewriteRule ^tags/(.*)\.html$ tags\.php\?\/$1\/
RewriteRule ^/?.+/list_([0-9]+)_([0-9a-z_]+_[0-9]+)_([0-9]+)\.html$ plus/list.php?tid=$1&filter=$2&PageNo=$3
RewriteRule ^/?.+/list_([0-9]+)_([0-9a-z_]+_[0-9]+)\.html$ plus/list.php?tid=$1&filter=$2
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/([0-9]+)\.html$ areas/plus/view\.php?aid=$3&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/([0-9]+)_([0-9]+)\.html$ areas/plus/view\.php?aid=$2&pageno=$3&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/$ areas/plus/list\.php?tid=$2&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/list_([0-9]+)_([0-9]+)\.html$ areas/plus/list\.php?tid=$3&PageNo=$4&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/$ areas/index\.php?area=$1 [L]
#RewriteRule ^city_([a-z0-9_\-]+)$ city_$1/ [L,R=301]
RewriteEngine On
RewriteBase /
RewriteRule ^demo/([0-9]+).html /plus/demo.php?aid=$1
RewriteRule ^demopic/([0-9]+).html /plus/demopic.php?aid=$1
RewriteRule ^down/([0-9]+).html /plus/download.php?open=0&aid=$1
#404
ErrorDocument 404 /404.html
#301
#安全设置 禁止以下目录运行指定php脚本
RewriteCond % !^$
RewriteRule a/(.*).(php)$ – [F]
RewriteRule data_5f13edda81fd7/(.*).(php)$ – [F]
RewriteRule images/(.*).(php)$ – [F]
RewriteRule css/(.*).(php)$ – [F]
RewriteRule js/(.*).(php)$ – [F]
RewriteRule style/(.*).(php)$ – [F]
RewriteRule skin/(.*).(php)$ – [F]
RewriteRule ask/(.*).(php)$ – [F]
RewriteRule templets/(.*).(php|htm)$ – [F]
RewriteRule uploads/(.*).(php)$ – [F]
RewriteRule include/customfields.func.php$ – [F]
#RewriteRule ^tags\.html$ tags\.php
RewriteRule ^tags/(.*)_([0-9]+)\.html$ tags\.php\?\/$1\/$2 [L]
RewriteRule ^tags/(.*)_([0-9]+)\.html$ tags\.php\?\/$1\/$2\/ [L]
RewriteRule ^tags/(.*)\.html$ tags\.php\?\/$1
RewriteRule ^tags/(.*)\.html$ tags\.php\?\/$1\/
RewriteRule ^/?.+/list_([0-9]+)_([0-9a-z_]+_[0-9]+)_([0-9]+)\.html$ plus/list.php?tid=$1&filter=$2&PageNo=$3
RewriteRule ^/?.+/list_([0-9]+)_([0-9a-z_]+_[0-9]+)\.html$ plus/list.php?tid=$1&filter=$2
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/([0-9]+)\.html$ areas/plus/view\.php?aid=$3&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/([0-9]+)_([0-9]+)\.html$ areas/plus/view\.php?aid=$2&pageno=$3&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/$ areas/plus/list\.php?tid=$2&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/(.*)/list_([0-9]+)_([0-9]+)\.html$ areas/plus/list\.php?tid=$3&PageNo=$4&area=$1 [L]
RewriteRule ^city_([a-z0-9_\-]+)/$ areas/index\.php?area=$1 [L]
#RewriteRule ^city_([a-z0-9_\-]+)$ city_$1/ [L,R=301]