ECSHOP 别轻率启用url重写功能和改名htaccess.txt文件
新一代的飓风I型linux空间不支持rewrite组件,使用ecshop想实现伪静态的朋友千万要小心了。
ECSHOP启用url重写,实现伪静态的方法:
1、确认你的服务器是用apache服务的。
2、确认你的服务器支持rewrite组件。
3、到ECSHOP管理后台,商店设置打开URL重写功能。
注意了!有的虚拟主机并不支持rewrite组件,例如新一代的飓风I型。如果你贸然启用了ecshop的url重写功能,想实现伪静态,将会带来问题。
问题1,如果你只是在后台设置了启用url重写,内页的地址变成html链接,不可访问。
问题2,如果你修改了网站跟目录下的文件htaccess.txt,改名为.htaccess之后,在FTP中变成不可见,并且会引发服务器出错,整个网站不能访问。错误信息如下:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
此时你没有办法修复这个错误,只能求助空间提供商,让他帮你删除.htaccess文件。当然,不用担心,删除后网站就会恢复正常。