Skip to the content
Documentation

Comments

No ratings yet

Mistake in last rewrite rule

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?
  • RE: Mistake in last rewrite rule

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

Geir Arne Waaler (14/09/2010 8:28 am)

Geir Arne Waaler (14/09/2010 8:28 am)


Contributors

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.

Comments

Add a comment

Comments are read by a moderator before they appear.