I have a few folders set up and use a basic rewrite for PHP extensions (where the URL does not display the .php) (eg /public_html/folderA | /public_html/folderB).
I've now set up some new folders that I do NOT want to have this redirect apply to (/public_html/folderC), but I can't figure out how to make the redirect apply exclusively to certain paths?
You can add a .htaccess file in public_html/folderC with:
RewriteEngine Off
You can also write exclusions (before other rules)
RewriteRule ^(public_html\/folderC)($|/) - [L]
Notice the [L], that will tell the rewrite engine not to look for any other rules.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.