您的位置:首页 > 运维架构 > Apache

wampserver apache 500 Internal Server Error

2014-03-19 23:20 656 查看

wampserver apache 500 Internal Server Error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost 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.排查:1:打开apache的错误日志apache_error.log,如果出现Invalid command 'RewriteEngine', 那说明apache没有开启rewrite模式解决:1:打开Apache安装目录下httpd.conf,搜索“LoadModule rewrite_modulemodules/mod_rewrite.so”,找到这一行,去掉前面的“#”;
2:找到“AllowOverride None”改为“AllowOverride All” 有两个地方需要修改
3:新建.haccess文件,放在当前网站根目录下,在.haccess文件中写伪静态规则,比如:
<IfModulemod_rewrite.c>RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</IfModule>4:重启apache来自:http://www.cnblogs.com/jiuyueguang/archive/2013/04/22/3035678.html
谢谢原作者
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  php wampserver apache