htaccess转nginx 求转
[*]ErrorDocument 404 /404.html[*]
[*]RewriteRule ^(.*)-p(*)\.html$ /product-view.php?id=$2
[*]
[*]RewriteRule ^(.*)-n(*)\.html$ /news-view.php?id=$2
[*]RewriteRule ^(.*)-n(*)-(*)\.html$ /news-view.php?id=$2&page=$3
[*]
[*]RewriteRule ^(.*)-i(*)\.html$ /info-view.php?id=$2
[*]RewriteRule ^(.*)-i(*)-(*)\.html$ /info-view.php?id=$2&page=$3
[*]
[*]RewriteRule ^(.*)-nc(*)\.html$ /news.php?nclassid=$2
[*]RewriteRule ^(.*)-nc(*)-(*)\.html$ /news.php?nclassid=$2&page=$3
[*]RewriteRule ^(.*)-nc(*)-(.*)-(*)\.html$ /news.php?nclassid=$2&page=$4&query=$3
[*]
[*]RewriteRule ^reviews-(*)-(*)\.html$ /comment.php?pid=$1&page=$2
[*]
[*]RewriteRule ^(.*)-c(*)\.html$ /products.php?classid=$2
[*]RewriteRule ^(.*)-c(*)-(*)\.html$ /products.php?classid=$2&page=$3
[*]RewriteRule ^(.*)-c(*)-(.*)-(*)\.html$ /products.php?classid=$2&page=$4&query=$3
[*]
[*]
[*]RewriteRule ^(.*)-s(*)\.html$ /products.php?disp=$2
[*]RewriteRule ^(.*)-s(*)-(*)\.html$ /products.php?disp=$2&page=$3
[*]
[*]RewriteRule ^(.*)-ptag(*)\.html$ /tag-view.php?id=$2
[*]RewriteRule ^(.*)-ptag(*)-(*)\.html$ /tag-view.php?id=$2&page=$3
[*]
[*]RewriteRule ^attr-(*)-(.*)-(*)\.html$ /attribute.php?classid=$1&page=$3&tags=$2
[*]
[*]RewriteRule ^Monthly-Update-(.*)-(*)-(*)-(*)\.html$ /monthly-update.php?year=$3&page=$4&month=$2
[*]RewriteRule ^OEM-Products-(*)\.html$ /oem.php?page=$1
[*]RewriteRule ^video-(*)\.html$ /video.php?page=$1
[*]RewriteRule ^thumb_(.*)__(.*)__(.*)$ /image.php?pic=$3&style=$1&folder=$2
[*]
[*]RewriteRule ^(cnlogin|comment|download|error|feedback|quick-step|get-pwd|image-view|index|news|products|profile|register|search|shopcart|sitemap|step).html(.*)$ /$1.php$3
[*]复制代码 主要这2个
RewriteRule ^video-(*)\.html$ /video.php?page=$1
RewriteRule ^thumb_(.*)__(.*)__(.*)$ /image.php?pic=$3&style=$1&folder=$2
用了网上的工具 转换失败 求顶 出点银子吧。。
008.gif
003.gif
rewrite ^/(.*)-p(*).html$ /product-view.php?id=$2;
rewrite ^/(.*)-n(*).html$ /news-view.php?id=$2;
rewrite ^/(.*)-n(*)-(*).html$ /news-view.php?id=$2&page=$3;
rewrite ^/(.*)-i(*).html$ /info-view.php?id=$2;
rewrite ^/(.*)-i(*)-(*).html$ /info-view.php?id=$2&page=$3;
rewrite ^/(.*)-nc(*).html$ /news.php?nclassid=$2;
rewrite ^/(.*)-nc(*)-(*).html$ /news.php?nclassid=$2&page=$3;
rewrite ^/(.*)-nc(*)-(.*)-(*).html$ /news.php?nclassid=$2&page=$4&query=$3;
rewrite ^/reviews-(*)-(*).html$ /comment.php?pid=$1&page=$2;
rewrite ^/(.*)-c(*).html$ /products.php?classid=$2;
rewrite ^/(.*)-c(*)-(*).html$ /products.php?classid=$2&page=$3;
rewrite ^/(.*)-c(*)-(.*)-(*).html$ /products.php?classid=$2&page=$4&query=$3;
rewrite ^/(.*)-s(*).html$ /products.php?disp=$2;
rewrite ^/(.*)-s(*)-(*).html$ /products.php?disp=$2&page=$3;
rewrite ^/(.*)-ptag(*).html$ /tag-view.php?id=$2;
rewrite ^/(.*)-ptag(*)-(*).html$ /tag-view.php?id=$2&page=$3;
rewrite ^/attr-(*)-(.*)-(*).html$ /attribute.php?classid=$1&page=$3&tags=$2;
rewrite ^/Monthly-Update-(.*)-(*)-(*)-(*).html$ /monthly-update.php?year=$3&page=$4&month=$2;
rewrite ^/OEM-Products-(*).html$ /oem.php?page=$1;
rewrite ^/video-(*).html$ /video.php?page=$1;
rewrite ^/thumb_(.*)__(.*)__(.*)$ /image.php?pic=$3&style=$1&folder=$2;
rewrite ^/(cnlogin|comment|download|error|feedback|quick-step|get-pwd|image-view|index|news|products|profile|register|search|shopcart|sitemap|step).html(.*)$ /$1.php$3;
免费小工在楼上 帮顶我唔 识
页:
[1]