Are the following opening/closing tags necessary for .htaccess mod_rewrite's? I've had .htaccess working without those, but just checking up on htaccess tutorials, many include this tag.
<IfModule mod_rewrite.c> ... </IfModule>
They are not necessary for mod_rewrite, as unknown directives are not interpreted, so it is more or less a style thing.
The tag can also used to perform test for not available modules with <IfModule !mod_rewrite.c>
, so that you can use some other directives in that case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With