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] )-([0 -9] )\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 [L]
RewriteRule ^([0-9] )\.html$ plusview .php?aid=$1 [L]
RewriteRule ^view-([0-9] )-([0-9] )\.html$ /plus/view.php?aid=$1&pageno= $2 [L]
RewriteRule ^index\.html$ /default。
你需要先建立一個你的站點的nginx設定文件,可以搜尋nginx設定站點,然後在設定檔中寫上你的偽靜態規則,具體寫法可以百度。