官方一定要出来说个清楚.html伪静态化的正确设置方法是?
2016-07-07 15:27 来源:www.chinab4c.com 作者:ecshop专家
官方一定要出来说个清楚.html伪静态化的正确设置方法是?
这个问题可能有不少会员都没搞定......我是2003系统IIS6.0
1, 按照官方的说明设置不成功,IIS里面显示加载成功,但网站无法显示网页?
2, 搜索到一些帖子,官方都没给出正确答案.想知道是怎么回事?
3, 这个程序能做静态化就说一下正确设置方法,不能做也说一下.谢谢.
4, 不要说我IIS设置有问题,论坛我设置过很多,都是正常的.
|
回答:
要顶到官方给出满意答案为止. |
官方....老大们呢.... |
- [ISAPI_Rewrite]
- # 为了确保重写规则不影响服务器上的其他站点
- # 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名
- RewriteCond Host: (?!\.|www|ww)(.*).pretty88.cn
- RewriteRule ^(.*)/index.html$ $1/index.php [I]
- RewriteRule ^(.*)/category$$1/index.php [I]
- RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2 [I]
- RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2[I]
- RewriteRule ^(.*)/feed.xml$$1/feed.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 ^(.*)/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 ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$ $1/category.php\?id=$2&brand=$3&page=$4[I]
- RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*).html$$1/category.php\?id=$2&brand=$3 [I]
- RewriteRule ^(.*)/category-([0-9]+)(.*).html$$1/category.php\?id=$2[I]
- RewriteRule ^(.*)/goods-([0-9]+)(.*).html$$1/goods.php\?id=$2[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 ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*).html$ $1/article_cat.php\?id=$2&page=$3 [I]
- RewriteRule ^(.*)/article_cat-([0-9]+)(.*).html$ $1/article_cat.php\?id=$2[I]
- RewriteRule^(.*)/article-(.*).html$ $1/article.php\?id=$2 [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 ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html $1/brand.php\?id=$2&cat=$3&page=$4[I]
- RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*).html $1/brand.php\?id=$2&cat=$3[I]
- RewriteRule ^(.*)/brand-([0-9]+)(.*).html$1/brand.php\?id=$2[I]
- RewriteRule ^(.*)/tag-(.*).html$1/search.php\?keywords=$2[I]
- RewriteRule ^(.*)/snatch-([0-9]+).html$$1/snatch.php\?id=$2[I]
- 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 |
- [ISAPI_Rewrite]
- # 为了确保重写规则不影响服务器上的其他站点
- # 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名
- RewriteCond %{HTTP:Host} (?!\.|www|ww)(.*).ewabc.cN
- RewriteRule ^(.*)/index.html$ $1/index.php [I]
- RewriteRule ^(.*)/category$$1/index.php [I]
- RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2 [I]
- RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2[I]
- RewriteRule ^(.*)/feed.xml$$1/feed.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 ^(.*)/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 ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category.php?id=$2&brand=$3&page=$4[I]
- RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$$1/category.php?id=$2&brand=$3 [I]
- RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$$1/category.php?id=$2[I]
- RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods.php?id=$2[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 ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat.php?id=$2&page=$3 [I]
- RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat.php?id=$2[I]
- RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article.php?id=$2 [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 ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3&page=$4[I]
- RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3[I]
- RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand.php?id=$2[I]
- RewriteRule ^(.*)/tag-(.*)\.html$1/search.php?keywords=$2[I]
- RewriteRule ^(.*)/snatch-([0-9]+)\.html$$1/snatch.php?id=$2[I]
- RewriteRule ^(.*)/group_buy-([0-9]+)\.html$$1/group_buy.php?act=view&id=$2[I]
复制代码 |
将category.php中加的.加上一个\.
- [ISAPI_Rewrite]
- # 为了确保重写规则不影响服务器上的其他站点
- # 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名
- RewriteCond Host: (?!\.|www|ww)(.*).pretty88.cn
- RewriteRule ^(.*)/index.html$ $1/index\.php [I]
- RewriteRule ^(.*)/category$$1/index\.php [I]
- RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed\.php\?cat=$2 [I]
- RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed\.php\?brand=$2[I]
- RewriteRule ^(.*)/feed.xml$$1/feed\.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 ^(.*)/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 ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$ $1/category\.php\?id=$2&brand=$3&page=$4[I]
- RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*).html$$1/category\.php\?id=$2&brand=$3 [I]
- RewriteRule ^(.*)/category-([0-9]+)(.*).html$$1/category\.php\?id=$2[I]
- RewriteRule ^(.*)/goods-([0-9]+)(.*).html$$1/goods\.php\?id=$2[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 ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*).html$ $1/article_cat\.php\?id=$2&page=$3 [I]
- RewriteRule ^(.*)/article_cat-([0-9]+)(.*).html$ $1/article_cat\.php\?id=$2[I]
- RewriteRule^(.*)/article-(.*).html$ $1/article\.php\?id=$2 [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 ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html $1/brand\.php\?id=$2&cat=$3&page=$4[I]
- RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*).html $1/brand\.php\?id=$2&cat=$3[I]
- RewriteRule ^(.*)/brand-([0-9]+)(.*).html$1/brand\.php\?id=$2[I]
- RewriteRule ^(.*)/tag-(.*).html$1/search.php\?keywords=$2[I]
- RewriteRule ^(.*)/snatch-([0-9]+).html$$1/snatch\.php\?id=$2[I]
- RewriteRule ^(.*)/group_buy-([0-9]+).html$$1/group_buy\.php\?act=view&id=$2[I]
复制代码 |
我的访问域名是 http://www.ewabc.cn/shop
按照上面的给我一个正确的配置.谢谢.或是那里出了问题... |