• Hi,

    On my (at this moment still local) site I can’t open it since a few days. The apache log (I changed the loglevel to Debug) says

    AH00121: r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/index.php
    AH00122: redirected from r->uri = /wordpress/

    so I’m in a loop.

    The index.php hasn’t changed the last months (time stamp of July), but the .htaccess file has a time stamp of three days ago. Though I myself didn’t change it. This file reads

    
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteBase /wordpress/
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule . /wordpress/index.php [L]
    
    </IfModule>
    
    # BEGIN WordPress
    # De richtlijnen (regels) tussen "BEGIN WordPress" en "END WordPress" worden
    # dynamisch gegenereerd en zouden alleen aangepast mogen worden via WordPress filters.
    # Alle wijzigingen aan de richtlijnen tussen deze markeringen worden overschreven.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    
    # END WordPressroot@odroid:/var/www/wordpress

    I deleted, one at the time, the /wordpress parts in the rules, and renewed the browser entry after each edit, but the message the browser gives stays the same, and in the error log the ‘redirect’ messages keep appearing.

    I tried to find a solution in the postings on this forum, and googling, but I can’t find anything A haven’t done yet.

    Anyone an idea how to repair this?

    • This topic was modified 4 years, 1 month ago by jehojakim.
Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s the first RewriteRule ^index\.php$ - [L] that breaks it.

    Delete everything before “# BEGIN WordPress…”

    Thread Starter jehojakim

    (@jehojakim)

    Hmm, thanks for your quick reply. But after deleting that part, saving the file, and opening the url again, both the message from the browser, and the error messages coming up in apache’s error log stay the same.

    After that, I also commented out the offending rewrite rule that exists after the BEGIN WordPress line, but that too didn’t help.

    I don’t think I have to restart Apache, do I?

    • This reply was modified 4 years, 1 month ago by jehojakim.
    • This reply was modified 4 years, 1 month ago by jehojakim.
    Thread Starter jehojakim

    (@jehojakim)

    Hmm,, even if I remove the .htaccess completely (I have a backup), the error messages stay the same… Also after restarting Apache.

    Thread Starter jehojakim

    (@jehojakim)

    Solved.

    I had made a copy of the site, and a new .conf in /etc/apache2 to reflect that. Apparently there the loop was created. I still have to investigate how to make a copy properly, but for now the problem is solved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Request exceeded the limit of 10 internal redirects’ is closed to new replies.