-
Notifications
You must be signed in to change notification settings - Fork 10
Recipes
tkb-github edited this page May 3, 2023
·
29 revisions
Having ported the firewall to mod_setenvif, it is possible to also dispense with any remaining rewrite rules. Follow these steps:
- Using mod_rewrite for permalink settings is a relic from httpd 2.2. The same effect can now be achieved with
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
FallbackResource /index.php
- Rules for access control can switch to using mod_setenvif or Cloudflare.
mod_rewrite
should be considered a last resort, when other alternatives are found wanting. Using it when there are simpler alternatives leads to configurations which are confusing, fragile, and hard to maintain. Understanding what other alternatives are available is a very important step towards mod_rewrite
mastery
— Rich Bowen