ERR_TOO_MANY_REDIRECTS after install SSL

Hi. I need help. After install an SSL certificate to my domain 'micomercioutlet.com' and change the site URL with 'https://' the frontend and backend shows me the error ERR_TOO_MANY_REDIRECTS

How can i fix it?

  • Denitsa
    • WordPress Warrior

    Hello deryan,
    I hope you're having a beautiful day!

    Could you access your site via FTP, open the wp-config.php file and add the following lines there above the /* That's all, stop editing! Happy blogging. */ line.

    define('WP_HOME','https://your-site.com');
    define('WP_SITEURL','https://your-site.com');

    Make sure you have https and not http, since you're using SSL here.

    Also, do you have any plugin you're using for redirection? If the above does not solve the issue, could you please try deactivating all your plugins and then trying again?

    If your site works with all the plugins deactivated, this might point us toward a plugin conflict. To find out the conflicting plugin, you'd need to start enabling those one by one and checking if your site still works between each activation.

    Here's a comprehensive article that's describing that error in detail:
    https://premium.wpmudev.org/blog/fixing-redirects-error-wordpress/

    Let me know how it goes!

    Cheers,
    Denitsa

  • Denitsa
    • WordPress Warrior

    Hello there deryan,

    Let me apologise for the delay from our end. We try to reply on older threads first but every time you put a reply, your thread becomes a fresh new one and goes down in the queue.

    I went on and opened the link you provided to your site https://www.micomercioutlet.com/ but I do not get a redirect error. Here's what I see:

    Instead, I can see in the JS console that there's an issue with jQuery. There also seems to be a problem loading your CSS.

    Do you have some kind of optimization plugin running? If so, can you exclude jQuery from the optimization? You can also try that for your CSS files until all styling appears again.

    Regards,
    Denitsa

  • Denitsa
    • WordPress Warrior

    Hello deryan,

    I'm sorry, so you're forcing https by means of wp-config.php and some database edits? Could you please elaborate more on that, like what code/edits are you exactly using?

    Also, could you try to regenerate your .htaccess file via FTP?
    You'd need to open your root WP directory (where the wp-config.php file is located) and there create a file named .htaccess (note the . before the name) with the following content if you're using single site:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    If you're on a SUBDOMAIN multisite, then try the following:

    RewriteEngine On
    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]

    And that one's for a subfolder multisite install:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Make sure you leave no blank lines above or below the code.

    You can check more about editing and restoring the .htaccess file here:
    https://premium.wpmudev.org/blog/htaccess/

    Let me know how this works for you!

    All the best,
    Denitsa

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.