伪静态设置后无法成功

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

  大家好,我第一次使用ECshop,很强大的一个网店系统。但是伪静态我设置后,添加一个分类页,无法显示成功哦。

伪静态设置成为“复杂重写”,其他都没有动什么呢。
根目录下的htaccess.txt也还在。
买的虚拟空间的。
网址:lining8.1.-sindns.-us(中间加了2个"-",请大家删除后就可以访问了)

  请问我该怎么办呢?

回答:
1。htaccess要改成.htaccsess。
2。确定你的虚拟主机支持自定义伪静态
3。确定你的虚拟主机是LINUX才支持.htaccess
4。如果虚拟主机系统是windows请使用httpd.ini

谢谢威博数据的支持!

我的是windows的系统
请问要怎么配置httpd.ini呢?

谢谢威博数据的支持!

我的是windows的系统
请问要怎么配置httpd.ini呢?
tanyou001 发表于 2010-5-5 16:12


确定你的空间支持自定义伪静态后,将以下文件复制到httpd.ini中,放到网站根目录
如果不支持自定义,请发给空间商设置


  1. [ISAPI_Rewrite]

  2. RewriteRule ^(.*)/index.html$ $1/index\.php[I]
  3. RewriteRule ^(.*)/category$$1/index\.php[I]
  4. RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed\.php\?cat=$2 [I]
  5. RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed\.php\?brand=$2[I]
  6. RewriteRule ^(.*)/feed-type([^-]+)\.xml$$1/feed\.php\?type=$2[I]
  7. RewriteRule ^(.*)/feed.xml$$1/feed\.php[I]
  8. 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]
  9. 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]
  10. 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]
  11. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$$1/category\.php\?id=$2&brand=$3&page=$4[I]
  12. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$$1/category\.php\?id=$2&brand=$3 [I]
  13. RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2[I]
  14. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)\.html(.*)$$1/category\.php\?$4&id=$2&brand=$3
  15. RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2[I]
  16. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5[I]
  17. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3 [I]
  18. RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2[I]
  19. RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article\.php\?id=$2 [I]
  20. 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]
  21. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3&page=$4[I]
  22. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)\.html(.*)$$1/brand\.php\?$4&id=$2&cat=$3[I]
  23. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3[I]
  24. RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand\.php\?id=$2[I]
  25. RewriteRule ^(.*)/tag-(.*)\.html$1/search\.php\?keywords=$2[I]
  26. RewriteRule ^(.*)/snatch-([0-9]+)\.html$ $1/snatch\.php\?id=$2[I]
  27. RewriteRule ^(.*)/group_buy-([0-9]+)\.html$ $1/group_buy\.php\?act=view&id=$2[I]
  28. RewriteRule ^(.*)/auction-([0-9]+)\.html$$1/auction\.php\?act=view&id=$2 [I]
  29. RewriteRule ^(.*)/exchange-id([0-9]+)(.*)\.html$$1/exchange\.php\?id=$2&act=view[I]
  30. RewriteRule ^(.*)/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&integral_min=$3&integral_max=$4&page=$5&sort=$6&order=$7 [I]
  31. RewriteRule ^(.*)/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&page=$3&sort=$4&order=$5 [I]
  32. RewriteRule ^(.*)/exchange-([0-9]+)-([0-9]+)(.*)\.html$$1/exchange\.php\?cat_id=$2&page=$3[I]
  33. RewriteRule ^(.*)/exchange-([0-9]+)(.*)\.html$$1/exchange\.php\?cat_id=$2[I]
复制代码

按照兄台的方法,可行,已解决。

谢谢威博数据。威博数据的网址是vbdns.com吗?咱们以后有机会合作呀。EC的要给点优惠吧,哈哈。

顺便一起请教一下。

如果我需要更改分类、商品和文章页的规则,分别是要改哪些呢~?
请求帮助一下。

哇哇,我也想知道啊

学习一下规则的写法。

2# 镜花水月

为静态IIS 里面怎么设置?

终于搞定了啊,谢谢大侠!www.chinaxypf.com

学习了~~