5

I installed craft according to the documentation but when I tried to access example.com/admin I get following error

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://example.com/

Every subpage like example.com/about has the same behavior. Only example.com works

9

I changed the .htaccess-file after I found the same problem with cakePHP. I just had to add RewriteBase / after RewriteEngine On so the .htaccess looks like:

<IfModule mod_rewrite.c>
    RewriteBase /
    # Send would be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>

If your site is multilingual (i.e., if you have subfolders like /en/, /de/, etc. with indivudual .htaccess files in them), this fix requires you to add you the locale's segment to the specific rewrite base of each .htaccess file (e.g. RewriteBase /en/ and so on.)

Now it works fine.

|improve this answer|||||
  • Feels wrong changing the provided htaccess file! But hey if it works. – mattl Oct 15 '14 at 20:13
  • I have to do this on Rackspace CloudSites servers, but not on any of my other servers local or remote. Kinda annoying but this fix does work so there is that. – Christopher Healey Feb 16 '15 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.