+-----------------------------------------------------------------------------

| 复制以下代码到你的配置文件中对应主机里加入就可，一般加到PHP配置的那段上面

+-----------------------------------------------------------------------------





location / {



# main

RewriteRule ^index.html$    index.php break;

RewriteRule ^sitemap.xml$    sitemap.php break;



# news

RewriteRule ^news(/o)*([0-9]*)$       article_category.php?page=$2 break;

RewriteRule ^news(/*)([a-z0-9-]*)(/*o*)([0-9]*)$       article_category.php?unique_id=$2&page=$4 break;



RewriteRule ^news/([0-9]+).html$       article.php?id=$1&rewrite=1 break;

RewriteRule ^news/([a-z0-9-]+)/([0-9]+).html$       article.php?id=$2&unique_id=$1 break;



# product

RewriteRule ^product(/o)*([0-9]*)$       product_category.php?page=$2 break;

RewriteRule ^product(/*)([a-z0-9-]*)(/*o*)([0-9]*)$       product_category.php?unique_id=$2&page=$4 break;



RewriteRule ^product/([0-9]+).html$       product.php?id=$1&rewrite=1 break;

RewriteRule ^product/([a-z0-9-]+)/([0-9]+).html$       product.php?id=$2&unique_id=$1 break;



# onepage

RewriteRule ^([a-z0-9-]+).html$       page.php?unique_id=$1 break;

RewriteRule ^guestbook(/)*([a-z]*)$       guestbook.php?rec=$2 break;



}