Feature #1235
Check if mod_rewrite is enabled
Status: | Closed | Start date: | 2008-08-06 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: |
Description
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.
Related issues
Associated revisions
- added mod_rewrite module check to .htaccess, refs #1235
- added mod_rewrite module check to .htaccess, refs #1235
History
#1 Updated by Karsten Dambekalns almost 7 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.
#2 Updated by Karsten Dambekalns over 6 years ago
- Status changed from New to Closed
- Assigned To set to Karsten Dambekalns
I added an ifmodule condition to the .htaccess files, the remainder of this issues is better dealt with in #87.