Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the order of RewriteRule flags matter?

I could not find documentation that says the order of the flags in RewriteRule matter. I don't think it does, but would like to get confirmation.

Are these two equivalent?

RewriteRule ^/test(.*) https://example.com/sites/test$1 [NC,R,L,NE]

RewriteRule ^/test(.*) https://example.com/sites/test$1 [NC,NE,R,L] 
like image 652
JeffJak Avatar asked Oct 20 '22 17:10

JeffJak


1 Answers

No, the order of flags in a single RewriteRule does not matter.

like image 150
Flimm Avatar answered Oct 24 '22 13:10

Flimm