Feature #1235

Check if mod_rewrite is enabled

Added by Robert Lemke about 11 years ago. Updated almost 9 years ago.

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

0%

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 support Resolved

Associated revisions

Revision e0e8a5b6 (diff)
Added by Karsten Dambekalns over 10 years ago

FLOW3, TYPO3v5 & Blog distributions:
  • added mod_rewrite module check to .htaccess, refs #1235

Revision 1b949713 (diff)
Added by Karsten Dambekalns over 10 years ago

FLOW3, TYPO3v5 & Blog distributions:
  • added mod_rewrite module check to .htaccess, refs #1235

History

#1 Updated by Karsten Dambekalns about 11 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 10 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