cancel
Showing results for 
Search instead for 
Did you mean: 

ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

Hi, 

 

I've had this problem a week back as well, and thought I bricked my install.

I made a new install a couple of days ago, that worked fine.

 

However, when I try to login today, I have the same issue again.

If I go to my site itself (https://gamepckopen.be) with cleaned cookies, it works fine. However, when I try accessing the admin page (/webmaster/), the entire thing bricks and I get the infamous redirect error. This also bricks the storeview.

 

I'm running my site on a Cpanel server on php 5.6. All the plugins are present, cron is setup correctly.

 

I've spent countless hours trying to get Magento 2 setup up properly - I'd like to get it actually working so I can start running my store.

 

Thoughts?

15 REPLIES

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

@Xenoware

 

What browser are you using? Have you tried any different browser? 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

Should probably have mentioned:

 

I tried both the last chrome and firefox. Both in ingonito to avoid cache/temp/cookie problems. The problem behaves the same way in every scenario.

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

Others have experienced the same in the past when using 'localhost' as the host instead of '127.0.0.1'


Can you check that you used the IP instead of Localhost? 

 

More details can be found here:  http://magento.stackexchange.com/questions/94722/magento-2-error-err-too-many-redirects 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

I'm not using a localhost on my machine, I'm using a cpanel vps, with a dedicated domain.

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

Any ideas?

 

EDIT: I read something about the fact that this might have something to do with the htaccess/SSL config.

This is my mod.rewite code:

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
    RewriteRule .* - [L,R=405]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [L]
</IfModule>

I'm using the cpanel letsencrypt plugin - the certificates work on all of my other sites.

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

@Xenoware

 

I suggest you speak to your webhosts and ask them to take a look at the SSL configuration. 

 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

I run the VPS myself. It's a mint Cpanel installation with a default letsencrypt setup. 

It runs every other platform flawlessly. 

 

Is there a way I can forcibly disable SSL usage in Magento without accessing the admin pages? (Database?) For diagnostic purposes.

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

@Xenowa

 

I see.

You don't necessarily have to use SSL if it's your test website. You can disable Secure pages in Stores - Config - Web and then change secure url to unsecure url. 

 

Bear in mind that if this is going to be live website then you must keep the SSL enabled. FYI - Google will start penalizing the ecommmerce stores who are not using SSL on their websites. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: ERR_TOO_MANY_REDIRECTS - site works, admin doesn't

I cannot acces my website admin because of the redirect problem (hence this thread).

Can I change that setting through phpMyAdmin? Which table is it located in?

 

I'm also aware of the SEO penalty, hence my preferred usage of SSL. The thing that makes this weird, is that it worked fine in the beginning. Then I try to log in a couple of days later and this happens - no changes to the server software, nor any changes I made to Magento.