I often see in PHP MVC applications an Apache RewriteRule
that looks like this:
RewriteRule ^.*$ - [NC,L]
The Apache docs for the RewriteRule
directive states:
A dash indicates that no substitution should be performed (the existing path is passed through untouched). This is used when a flag (see below) needs to be applied without changing the path.
So from what I gather, you can use this to transform a path using a flag i.e [NC]
for the RewriteRule
s to follow?
Could someone please explain this dash RewriteRule
a little better?