2014-02-27 34 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謝謝..這是瘋了。我需要睡眠 –