I’ve used mod_rewrite in my application. So I have some pages like site.com/about/ and site.com/services/ that are files actually. But I have a directory named panel for administration panel.
How can I write mod_rewrite rules to exclude this directory ?
I’ve used mod_rewrite in my application. So I have some pages like site.com/about/ and
Share
It is common to check that the rule won’t match files and directories with this two rules:
See also the official documentation from rewritecond: