Request exceeded the limit of 10 internal redirects due to probable configuration error.?

后端 未结 3 1216
天命终不由人
天命终不由人 2020-12-01 04:36

i have a simple rewrite

RewriteRule ^.*$ addnew/$0

however i get the

Request exceeded the limit of 10 internal redirects d         


        
3条回答
  •  佛祖请我去吃肉
    2020-12-01 05:11

    As RC already said, .* will also match addnew/. And since the L flag causes a reinjection of the rewritten rule, you will get an infinite recursion.

    So adjust the rule so it doesn’t match your addnew/:

    RewriteRule !^addnew/ addnew%{REQUEST_URI}
    

提交回复
热议问题