Check if mod_rewrite is enabled
FLOW3 should check (somehow) if mod_rewrite is enabled. Without the check the user will just get an internal server error.
One way to do that is adding an IfModule section into the .htaccess and let the FLOW3 checkEnvironment() care about the details and issue an error message.
- added mod_rewrite module check to .htaccess, refs #1235
#1 Updated by Karsten Dambekalns almost 12 years ago
Here's how to check if the module is loaded:
array_search('mod_rewrite', apache_get_modules()) !== FALSE
What this does not check is whether the module is really enabled. And the whole checking doesn't help if the user tried to access an URL only usable with mod_rewrite in the first place.
We probably need subsystems for different URL rewriting engines (for Apache, IIS, ...) and those should if possible include a check and routines to build links and decode URLS.