RewriteRule Error: Bad flag delimiters

我与影子孤独终老i 提交于 2019-11-28 21:07:55

Turns out it was because of the space before N in the flag declaration [L,R=301, NC]. I changed it to [L,R=301,NC] and now it works a treat.

Arvind Kala

Check at the link below, and it will give you the line with error, which will be straight forward to fix

http://www.htaccesscheck.com/index.html

In your case it will clearly specify the bad flags in the below line, which can be corrected in their editor and check there itself.

RewriteRule ^dev/(.*)$ http://dev.example.com/$1 [L,R=301, NC]

to

RewriteRule ^dev/(.*)$ http://dev.example.com/$1 [L,R=301,NC]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!