nginx伪静态规则问题

rewrite /sitemap/ /index.php?a=sitemap last; rewrite /sitemap/(.*)/(.*).html /index.php?a=sitemap&name=$1&p=$2 last; 这两条规则冲突了 /sitemap 对应的是index.php?a=sitemap 但是当/sitemap/a/b.html的时候 也指向了index.php?a=sitemap 正确... rewrite /sitemap/ /index.php?a=sitemap last;
rewrite /sitemap/(.*)/(.*).html /index.php?a=sitemap&name=$1&p=$2 last;
这两条规则冲突了
/sitemap 对应的是index.php?a=sitemap
但是当/sitemap/a/b

apache伪静态规则 转 nginx

<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !^(index\.php|robots\.txt|views|plugins|backup|upload|images|install|admin123|plug|test|install|make|js|favicon\.ico|templates|mqqt) ... <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|robots\.txt|views|plugins|backup|upload|images|install|admin123|plug|test|install|make|js|favicon\

求个nginx伪静态规则

静态地址, 动态地址 /mylist/, mylist.php /mylist/list1.html, mylist.php?page=1 /ipage-1/ ipage-... 静态地址, 动态地址
/mylist/, mylist.php
/mylist/list1.html, mylist

nginx 伪静规则谁有哇

[求助]nginx 伪静规则谁有哇 麻烦来一份谢谢RewriteEngine On RewriteBase / RewriteRule ^item/([0-9a-z]+)\.html$ /goods.php?iid=$1改成Nginx下伪静态规则rewrite ^/item/([0-9a-z]+)\.html$ /goods.php?iid=$1 last;放到location / {}里面