Skip to the content
Documentation

Mistake in last rewrite rule

No ratings yet

When I tried the rewrite rules above, Apache (2.0.54) complained with "mod_rewrite: maximum number of internal redirects reached", resulting in a 500 error.
The solution is that the last rewrite rule should read:
RewriteRule .* index.php # no leading slash
See http://www.sitepoint.com/print/mod_rewrite-no-endless-loops for an explanation.
By the way, this VirtualHost setup is quite differet to those in the .htaccess_root file that shops with ez Publish 3.7.2 - would you recommend a selective merge of the two or to stick to this example?

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. RE: Mistake in last rewrite rule

    André R. ·

    Not correct, I suspect you are talking about .htaccess.
    These pages does not cover .htaccess, but vhost settings.