Win2003/IIS6.0的伪静态设置问题

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

系统是WIndows2003,IIS6.0,安装了isapi_rwl_x86_0063.msi,httpd.ini文件内容如下:
修改htaccess.txt 为 .htaccess.
后台开启了URL简单重写。
完全按论坛里面帖子说的设置,可是没起作用,访问网站页面还是.php的。重装ecshop也是一样。求教各位大侠解决方案。

RewriteCond Host:125.65.113.78:82
RewriteRule ^(.*)/index.html$ $1/index.php
RewriteRule ^(.*)/category$$1/index.php
RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2
RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2
RewriteRule ^(.*)/feed.xml$$1/feed.php
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
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
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
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$ $1/category.php\?id=$2&brand=$3&page=$4
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*).html$$1/category.php\?id=$2&brand=$3
RewriteRule ^(.*)/category-([0-9]+)(.*).html$$1/category.php\?id=$2
RewriteRule ^(.*)/goods-([0-9]+)(.*).html$$1/goods.php\?id=$2

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

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
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html $1/brand.php\?id=$2&cat=$3&page=$4
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*).html $1/brand.php\?id=$2&cat=$3
RewriteRule ^(.*)/brand-([0-9]+)(.*).html$1/brand.php\?id=$2
RewriteRule ^(.*)/tag-(.*).html$1/search.php\?keywords=$2
RewriteRule ^(.*)/snatch-([0-9]+).html$$1/snatch.php\?id=$2
RewriteRule ^(.*)/group_buy-([0-9]+).html$$1/group_buy.php\?act=view&id=$2

回答:
自己顶一下

我的服务器也是 2003+IIS +MYSQL不知道怎么设置伪静态环境听说需要 阿帕齐正考虑换LINUX系统

2003 + iis + mysql 应该是可以的,只是不知道怎么设置.

请参考下载的ec程序包里有一个docs文件夹URLRewrite.txt文件里有关于iis配置的说明。

我买的是LINUX空间,服务器也支持。跟楼主一样修改htaccess.txt 为 .htaccess.放在根目录下。
后台开启了URL简单重写。也一样实现不了伪静态效果。请高手指教。谢谢


OK,我的搞定,就是DOCS里的那个文档交的
http://shop.xiguat.com

好东西。。

,还是没解决掉

从来不看文档的,不过,现在想要实现功能的,准备去看文档的路过

www.runfou.com