官方一定要出来说个清楚.html伪静态化的正确设置方法是?

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

官方一定要出来说个清楚.html伪静态化的正确设置方法是?
这个问题可能有不少会员都没搞定......我是2003系统IIS6.0

1, 按照官方的说明设置不成功,IIS里面显示加载成功,但网站无法显示网页?
2, 搜索到一些帖子,官方都没给出正确答案.想知道是怎么回事?
3, 这个程序能做静态化就说一下正确设置方法,不能做也说一下.谢谢.
4, 不要说我IIS设置有问题,论坛我设置过很多,都是正常的.



回答:
要顶到官方给出满意答案为止.

就是你的 IIS 设置有问题!

帖你的rewrite规则出来看看

官方....老大们呢....

  1. [ISAPI_Rewrite]
  2. # 为了确保重写规则不影响服务器上的其他站点
  3. # 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名

  4. RewriteCond Host:   (?!\.|www|ww)(.*).pretty88.cn
  5. RewriteRule ^(.*)/index.html$ $1/index.php [I]
  6. RewriteRule ^(.*)/category$$1/index.php [I]
  7. RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2 [I]
  8. RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2[I]
  9. RewriteRule ^(.*)/feed.xml$$1/feed.php[I]
  10. 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]
  11. 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]
  12. 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]
  13. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$ $1/category.php\?id=$2&brand=$3&page=$4[I]
  14. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*).html$$1/category.php\?id=$2&brand=$3 [I]
  15. RewriteRule ^(.*)/category-([0-9]+)(.*).html$$1/category.php\?id=$2[I]
  16. RewriteRule ^(.*)/goods-([0-9]+)(.*).html$$1/goods.php\?id=$2[I]

  17. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$$1/article_cat.php\?id=$2&page=$3&sort=$4&order=$5[I]
  18. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*).html$ $1/article_cat.php\?id=$2&page=$3 [I]
  19. RewriteRule ^(.*)/article_cat-([0-9]+)(.*).html$ $1/article_cat.php\?id=$2[I]
  20. RewriteRule^(.*)/article-(.*).html$ $1/article.php\?id=$2 [I]

  21. 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]
  22. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html $1/brand.php\?id=$2&cat=$3&page=$4[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]
复制代码

请问您在使用中出现什么问题?

就是静态页面不显示.

给一个真正的正确说明. 谢谢.

是找不到页面吗?404的错误?可否把网址贴出来看一下。

http://www.ewabc.cn/shop/category-1-b0.html

  1. [ISAPI_Rewrite]
  2. # 为了确保重写规则不影响服务器上的其他站点
  3. # 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名
  4. RewriteCond %{HTTP:Host} (?!\.|www|ww)(.*).ewabc.cN
  5. RewriteRule ^(.*)/index.html$ $1/index.php [I]
  6. RewriteRule ^(.*)/category$$1/index.php [I]
  7. RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2 [I]
  8. RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2[I]
  9. RewriteRule ^(.*)/feed.xml$$1/feed.php[I]
  10. 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]
  11. 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]
  12. 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]
  13. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category.php?id=$2&brand=$3&page=$4[I]
  14. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$$1/category.php?id=$2&brand=$3 [I]
  15. RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$$1/category.php?id=$2[I]
  16. RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods.php?id=$2[I]
  17. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/article_cat.php?id=$2&page=$3&sort=$4&order=$5[I]
  18. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat.php?id=$2&page=$3 [I]
  19. RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat.php?id=$2[I]
  20. RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article.php?id=$2 [I]
  21. 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]
  22. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3&page=$4[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]
复制代码

将category.php中加的.加上一个\.

  1. [ISAPI_Rewrite]
  2. # 为了确保重写规则不影响服务器上的其他站点
  3. # 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名

  4. RewriteCond Host:   (?!\.|www|ww)(.*).pretty88.cn
  5. RewriteRule ^(.*)/index.html$ $1/index\.php [I]
  6. RewriteRule ^(.*)/category$$1/index\.php [I]
  7. RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed\.php\?cat=$2 [I]
  8. RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed\.php\?brand=$2[I]
  9. RewriteRule ^(.*)/feed.xml$$1/feed\.php[I]
  10. 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]
  11. 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]
  12. 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]
  13. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$ $1/category\.php\?id=$2&brand=$3&page=$4[I]
  14. RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*).html$$1/category\.php\?id=$2&brand=$3 [I]
  15. RewriteRule ^(.*)/category-([0-9]+)(.*).html$$1/category\.php\?id=$2[I]
  16. RewriteRule ^(.*)/goods-([0-9]+)(.*).html$$1/goods\.php\?id=$2[I]

  17. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$$1/article_cat\.php\?id=$2&page=$3&sort=$4&order=$5[I]
  18. RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*).html$ $1/article_cat\.php\?id=$2&page=$3 [I]
  19. RewriteRule ^(.*)/article_cat-([0-9]+)(.*).html$ $1/article_cat\.php\?id=$2[I]
  20. RewriteRule^(.*)/article-(.*).html$ $1/article\.php\?id=$2 [I]

  21. 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]
  22. RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html $1/brand\.php\?id=$2&cat=$3&page=$4[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]
复制代码

我的访问域名是 http://www.ewabc.cn/shop

按照上面的给我一个正确的配置.谢谢.或是那里出了问题...

加在那里?怎么加?说清楚一点.谢谢.