Maison  >  Article  >  développement back-end  >  关于ecshop IIS 伪静态

关于ecshop IIS 伪静态

WBOY
WBOYoriginal
2016-06-23 14:26:321027parcourir


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

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:微博同步问题求助.Article suivant:大家说说Drupal