关于ecshop IIS 伪静态

WBOY
Release: 2016-06-23 14:26:32
Original
1033 people have browsed it


关于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却没有变。。。
真郁闷呐,,还为以解决问题了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!