帮我转一份伪静态规则好吗,谢谢

Kvin 发布于 2014/03/29 13:39
阅读 75
收藏 0
# main
RewriteRule ^index\.html$    index\.php [L]
RewriteRule ^sitemap\.xml$    sitemap\.php [L]
# news
RewriteRule ^news(/o)*([0-9]*)$       article_category.php\?page=$2   [QSA,L]
RewriteRule ^news(/*)([a-z0-9-]*)(/*o*)([0-9]*)$       article_category.php\?unique_id=$2&page=$4   [QSA,L]
RewriteRule ^news/([0-9]+)\.html$       article.php\?id=$1&rewrite=1   [QSA,L]
RewriteRule ^news/([a-z0-9-]+)/([0-9]+)\.html$       article.php\?id=$2&unique_id=$1   [QSA,L]
# product
RewriteRule ^product(/o)*([0-9]*)$       product_category.php\?page=$2   [QSA,L]
RewriteRule ^product(/*)([a-z0-9-]*)(/*o*)([0-9]*)$       product_category.php\?unique_id=$2&page=$4   [QSA,L]
RewriteRule ^product/([0-9]+)\.html$       product.php\?id=$1&rewrite=1   [QSA,L]
RewriteRule ^product/([a-z0-9-]+)/([0-9]+)\.html$       product.php\?id=$2&unique_id=$1   [QSA,L]
# page

RewriteRule ^([a-z0-9-]+)\.html$       page.php\?unique_id=$1   [QSA,L]

这个是apache的

我想转一份Nginx。谢谢


加载中
返回顶部
顶部