分享

写回答

发帖

[提问] 我的网站出现500错误

GoDaddy GoDaddy 1907 人阅读 | 9 人回复

发表于 2010-9-25 20:49:25 | 显示全部楼层 |阅读模式

www.phonehere.cn
用的是shopex程序,我发ticket给客服,回复说很有可能是.htaccess文件错误

我的文件原文:
#$Id: root.htaccess 17348 2008-12-23 05:53:22Z flaboy $

AddEncoding gzip .jgz
AddType "text/javascript;charset=UTF-8" .jgz

AddEncoding gzip .zcss
AddType "text/css;charset=UTF-8" .zcss

<IfModule mod_rewrite.c>
RewriteEngine  on

# 设置RewriteBase的值为你的商店目录地址
RewriteBase /
RewriteRule ^themes/.*\.(html|xml)$ / [F]
RewriteCond %{REQUEST_FILENAME} \.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

没做过改动。但是根目录的网站将htaccess里的AddDefaultCharset auto改成AddDefaultCharset off。其他几个网站都没出现问题。就这个500 Internal Server Error。

回答|共 9 个

yachiw

发表于 2010-9-25 21:59:53 | 显示全部楼层

这个还真没遇到。,等版主来看看
RAKSmart

timon

发表于 2010-9-26 08:38:34 | 显示全部楼层

add.c来了么

add.c

发表于 2010-9-26 09:54:05 | 显示全部楼层

只保留<IfModule mod_rewrite.c>
RewriteEngine  on

# 设置RewriteBase的值为你的商店目录地址
RewriteBase /
RewriteRule ^themes/.*\.(html|xml)$ / [F]
RewriteCond %{REQUEST_FILENAME} \.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

这部分看看

timon

发表于 2010-9-26 11:53:52 | 显示全部楼层

试了依然不行

开心私塾

发表于 2010-9-26 11:55:38 | 显示全部楼层

那么就屏蔽到这个文件文件,然后在看看。

timon

发表于 2010-9-26 12:19:39 | 显示全部楼层

屏蔽?请问怎么屏蔽?

add.c

发表于 2010-9-26 13:33:31 | 显示全部楼层

回复 7# 的帖子

比如改名字为back.htaccess

timon

发表于 2010-9-26 15:57:17 | 显示全部楼层

这个方法也试,还是打不开

add.c

发表于 2010-9-26 17:52:39 | 显示全部楼层

回复 9# 的帖子

联系GoDaddy客服说, 已经屏蔽了.htaccess, 还是不行
您需要登录后才可以回帖 登录 | 注册

本版积分规则