Path

7x / documentation / exponential / technical manual / 4.7 / installation / virtual host setup / mistake in last rewrite rule


Caution: This documentation is for Exponential, from version 3.x to 6.x.
For 5.x documentation covering Platform see Exponential Platform Documentation, for difference between legacy and Platform see 5.x Architecture overview.

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 10:28 am)

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


Comments

  • RE: Mistake in last rewrite rule

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