关于ecshop IIS 伪静态
有日子没弄ecshop了,昨晚上下装了ec,装完了,静态化的时候出了问题,怎么弄都是404。
1。EC后台已设置了URL "简单重写"
2。下载并安装了Rewrite3.0组件,在IIS属性中ISAPI中指定Rewrite路径。
3。将http.ini文件复制到网站根目录
4。重启IIS
请问各位,这是什么问题,出在哪儿了。。
清除下缓存看看。。最好能贴上2行代码,看看rewrite后,静态url究竟访问的哪个程序页。。
问题解决了。。原来还在改Rewrite组件安装目录下的http.conf文件,在里面加
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56
RewriteBase /
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} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
------------然后重新启动Rewrite,搞定。
ISAPI_Rewrite 不好用,
建议使用iis官方的urlrewrite
又发现问题了,点击是可以跳转了,可不论点哪个链接,都是到首页,但是url却没有变。。。
真郁闷呐,,还为以解决问题了。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号