Bug 9683: Allow disable rewrite apache mod
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Thu, 21 Feb 2013 14:26:32 +0000 (15:26 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 3 Apr 2013 11:02:54 +0000 (07:02 -0400)
commitb9c2c58fe601fe661e4111c5458d2e6bce64fc1a
tree1f52e450593e742f720d1ed04a7f201eb6b3af09
parentcb86132048fde79b588f8b7d60d6b06ad2765aea
Bug 9683: Allow disable rewrite apache mod

In Apache config koha-httpd.conf, URL-rewriting is enabled and does not
allow to disable mod_rewrite. Also, first rewriting rule
"RewriteRule (.+) $1?%1%2 [N,R,NE]" is enabled by default. This rule
rewrites nearly every URL. I propose to comment it in sources so that is
must be intentionally enabled.

This patch sets rewriting options into a conditional tag.

Test plan :
Test OPAC and intranet with and without mod_rewrite activated.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
The new Apache configuration seems to work fine (or at least as "fine"
as Apache gets) both with and without mod_rewrite enabled.
etc/koha-httpd.conf