按照默认路径安装后,打开C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf加入以下规则:# Helicon ISAPI_Rewrite configuration file# Version 3.1.0.56RewriteBase /RewriteCond %{REQUEST_FILENAME} \.(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml)$RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?$1 [L][ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteRule ^(.*)/archiver/((fid|tid)-[0-9] \.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4RewriteRule ^(.*)/forum-([0-9] )-([0-9] )\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4RewriteRule ^(.*)/thread-([0-9] )-([0-9] )-([0-9] )\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\=$4&page=$3&$4RewriteRule ^(.*)/space-(username|uid)-(. )\.html\?*(.*)$ $1/space\.php\?$2=$3&$4RewriteRule ^(.*)/tag-(. )\.html\?*(.*)$ $1/tag\.php\?name=$2&$3下面就需要配置iis为shopex4.8加载组件了:打开iis,右键你的站点属性--ISAPI 筛选器--添加--筛选器名称是ISAPI_Rewrite3 --可执行文件就是ISAPI_Rewrite.dll的路径,比如C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_Rewrite.dll最后重启iis当然你可以把ISAPI_Rewrite3目录放入站点根目录下,但记得要给一个users读
权限。
如果都设置了还不行,可为网站跟目录加一个“network service”的读权限。注意:有些服务器或者vps有做权限的,安装后httpd.conf可能只有everyone和system的权限,如果修改不了文件就添加一个administrator的权限。2、Discuz6 ecshop规则如下:[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteCond %{HTTP_HOST}RewriteRule /index.html /index.php [I]RewriteRule /default.html /index.php [I]RewriteRule /feed.xml /feed.php [I]RewriteRule /category-([0-9] ).html /category\.php\?id=$1 [I]RewriteRule /category-([0-9] )-([0-9] ).html /category\.php\?id=$1&page=$2 [I]RewriteRule /category-([0-9] )-([0-9] )-(. )-([a-zA-Z] ).html /category\.php\?id=$1&page=$2&sort=$3&order=$4 [I]RewriteRule /goods-([0-9] )\.html /goods\.php\?id=$1 [I]RewriteRule /article_cat-([0-9] ).html /article_cat\.php\?id=$1 [I]如果你
的是虚拟空间,你得问客服,服务器是否支持伪静态,如果支持,是IIS还是Apache,如果是IIS,需要把根目录的root.htaccess修改为.htaccess,然后再在后台开启伪静态.
如果你的是VPS或服务器,在VPS和服务器上安装rewrite.然后再在后台开启伪静态.
如果回答满意!请采纳.谢谢!
评论列表(0条)