Board logo

标题: [提问] 使用 htaccess 网站 Internal Server Error [打印本页]

作者: yixueliang    时间: 2017-5-28 23:23     标题: 使用 htaccess 网站 Internal Server Error

.htaccess
RewriteEngine on
RewriteCond %{http_host} ^xxxx.com [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]

================================================
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{http_host} ^xxxx.com [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]
</IfModule>

使用这两个都不行,只要上传这个.htaccess 网站就显示


提示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
作者: dnf008    时间: 2017-5-29 08:02

RewriteCond %{http_host} ^xxxx.com [NC] 把这条去掉试试 一条一条排除




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2