• Resolved delanthear

    (@delanthear)


    Hello.

    Working on a client website which is hosted on GoDaddy. Due to their ridiculous costs for SSL, SSL is handled by Cloudflare. Everything was working fine, but I’ve converted the site to multisite and I’m starting to see redirect loops.

    You can get to the admin panel fine, and browse the site, but it’s only when you go to add a plugin that it loops. You get the following:

    Request URL: https://henparty.yoga/wp-admin/network/plugin-install.php
    Status Code: 302
    location: https://henparty.yoga/wp-admin/plugin-install.php?tab=gd-recommended

    The following:
    Request URL: https://henparty.yoga/wp-admin/plugin-install.php?tab=gd-recommended
    Status Code: 302
    https://henparty.yoga/wp-admin/network/plugin-install.php

    and repeats.

    Trying out the cloudflare prevent redirect plugins isn’t helping. The .htaccess file is correct:

    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    We have the same problems with the add themes page. I’ve not found any other pages which loop.

    Any clues where to go to debug?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter delanthear

    (@delanthear)

    Gah, also just discovered we’re getting 404 errors when trying to save gutenberg blocks: /wp-json/wp/v2/pages/1710?_locale=user

    very good

    That .htaccess file seems like it may cause some redirects between URLs ending in forward slashes and URLs without ending with forward slashes.

    You’ve probably found a fix already but I would recommend double checking the logic in your .htaccess (maybe see that one of those rules could have been made redundant by another yet cause problems in the right circumstances).

    I’ve personally encountered and read reports and of users getting stuck in a redirect loop that seemingly redirected pages to themselves because the browser or myself would be unknowingly adding / on the end of the URL causing it to loop.

    Thread Starter delanthear

    (@delanthear)

    The htaccess rules are a cut and paste of what comes out of WordPress when you enable it, so it should be fine.

    I suspect this was a GoDaddy problem as we started seeing loads of other errors. In the end I just moved it to a different host.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Godaddy + Multisite + Cloudflare + Redirect loops’ is closed to new replies.