Feature #1235

Check if mod_rewrite is enabled

Added by Robert Lemke about 13 years ago. Updated about 11 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
PHP Version:
Has patch:


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

Related to TYPO3.Flow - Feature #87: Add fallback for servers without mod_rewrite / .htaccess supportResolvedKarsten Dambekalns


Updated by Karsten Dambekalns about 13 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.


Updated by Karsten Dambekalns over 12 years ago

  • Status changed from New to Closed
  • Assignee set to Karsten Dambekalns

I added an ifmodule condition to the .htaccess files, the remainder of this issues is better dealt with in #87.

Also available in: Atom PDF