2014-02-27 15 views
0

我在.htaccess文件中有这样的规则,但由于某种原因,我得到的袋子标志符消息501服务器错误。的.htaccess的RewriteCond:坏的标志定界符

RewriteEngine On 

RewriteRule ^(blog|deblog|plblog)$ /$0 [L] 
RewriteCond %{HTTP_HOST} ^www\.example\.de [NC] 
RewriteCond %{REQUEST_URI} !^/index\.(php|html) [NC] 
RewriteCond %{REQUEST_URI} !^/$ {NC] 
RewriteRule ^.*$ http://www.example.de/de/$0 [R=301,L] 
+1

错字? ''{ - >'['在第6行 – ConcurrentHashMap

回答

3

你有错字,替换:

RewriteCond %{REQUEST_URI} !^/$ {NC] 

RewriteCond %{REQUEST_URI} !^/$ [NC] 
+0

OMG谢谢..这是疯了。我需要睡眠 –