Feature #1235

Check if mod_rewrite is enabled

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

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-08-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

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

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

Actions
#1

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

#2

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