怎么能让网页实现静态化

2016-07-07 15:42 来源:www.chinab4c.com 作者:ecshop专家

怎么能让网页实现静态化?

回答:
我是来寻找ECSHPP静态化规则的

试试下面的设置,我用了一直很正常
复制下面的内容到记事本,然后保存文件为httpd.in,上传到ECSHOP根目录,然后在后台商店设置里启用URL重写
[ISAPI_Rewrite]
# ECSHOP
RewriteRule /index.html$/index.php [I]
RewriteRule /group_buy.html$ /group_buy.php [I]
RewriteRule /ecshop/feed.xml$/feed.php [I]
RewriteRule /ecshop/flow.html$ /flow.php [I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)\.html$ $1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 [I]
#RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 [I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$4&sort=$5&order=$6 [I]

#RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$/ecshop/category.php?id=$1&brand=$2&page=$3[I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$$1/category\.php\?id=$2&brand=$3&page=$4[I]
#RewriteRule /ecshop/category-([0-9]+)-b([0-9]+)(.*)\.html$ /ecshop/category.php?id=$1&brand=$2[I]
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3[I]
#RewriteRule /ecshop/category-([0-9]+)(.*)\.html$/ecshop/category.php?id=$1[I]
RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$$1/category\.php\?id=$2[I]
#RewriteRule /ecshop/goods-([0-9]+)(.*)\.html$/ecshop/goods.php?id=$1 [I]
RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2

#RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ /ecshop/article_cat.php?id=$1&page=$2&sort=$3&order=$4[I]
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5[I]
#RewriteRule /ecshop/article_cat-([0-9]+)-([0-9]+)(.*)\.html$/ecshop/article_cat.php?id=$1&page=$2[I]
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$$1/article_cat\.php\?id=$2&page=$3[I]
#RewriteRule /ecshop/article_cat-([0-9]+)(.*)\.html$ /ecshop/article_cat.php?id=$1[I]
RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2[I]
#RewriteRule /ecshop/article-([0-9]+)(.*)\.html$/ecshop/article.php?id=$1[I]
RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article\.php\?id=$2[I]
#RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$ /ecshop/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3&page=$4&sort=$5&order=$6 [I]
#RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$/ecshop/brand.php?id=$1&cat=$2&page=$3 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html$$1/brand\.php\?id=$2&cat=$3&page=$4 [I]
#RewriteRule /ecshop/brand-([0-9]+)-c([0-9]+)(.*)\.html$ /ecshop/brand.php?id=$1&cat=$2 [I]
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html$ $1/brand\.php\?id=$2&cat=$3 [I]
#RewriteRule /ecshop/brand-([0-9]+)(.*)\.html$/ecshop/brand.php?id=$1 [I]
RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$$1/brand\.php\?id=$2 [I]
#RewriteRule /ecshop/tag-(.*)\.html$/ecshop/search.php?keywords=$1 [I]
RewriteRule ^(.*)/tag-(.*)\.html$$1/search\.php\?keywords=$2 [I]
RewriteRule ^(.*)/group_buy-([0-9]+)(.*)\.html$$1/group_buy\.php\?act=view&id=$2
RewriteRule ^(.*)/group_buy_page-([0-9]+)(.*)\.html$$1/group_buy\.php\?act=list&page=$2

这个可行吗?怎么没人用。这么简单的方法。

这个就可以用的,但是要是 整合论坛的话,要分开写规则文件夹

分开写,不容易冲突,我的小店 www.rock01.com摇滚城

用伪静态比较好把。呵呵。真静态,比较复杂。

总结了一下ecshop伪静态的方法。以下供你参考

http://www.chinab4c.com/html/shangchengchengxu/ecshopdianzishangwu/2009/0530/14.html

楼上谢谢,试试先