怎么能让网页实现静态化
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 |
楼上谢谢,试试先 |
最近更新
常用插件
- ecshop2.7.2迷你购物车插件
ecshop2.7.2迷你购物车插件,这个插件主要是针对修改ecshop购买功能,为了...
- ecshop后台订单商品列表查
ecshop后台订单商品列表查询插件,可以通过名称。就把产品显示检索出...
- ecshop导出待发货订单exce
ecshop导出待发货订单excel格式,这个东西是十分重要的,我们在倒出ec...
- ecshop评论功能改进插件
ecshop评论功能改进插件,这个插件是改进了现有的ecshop评论功能的一些...
- ecshop商品列表中品牌批量
ecshop商品列表中品牌批量转移插件.这个插件听起来非常希奇。但是我们...
ecshop热门问答
ecshop热门资料
ecshop谢求
ecshop白开水
ecshop2.7.0
ecshop帅哥美女
ecshop搜索功能增强
ecshop站长统计
HDWiki
ecshop细化
ecshop模板升级
ecshop版权
ecshopcommand
ecshop自定义模板
ecshop编辑框
ecshop皮肤
ecshop标志
ecshop议价
ecshop关闭注册
ecshopall
目录权限
ecshop商品详情图显示不全
ecshop文本框
weberp
推荐
ecshop兑换积分
ecshop建立数据库
ecshopCart网店系统
ecshop url伪静态
ecshopVertrigoServ
ecshop整个网络
ecshop开什么店好