cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple WebSites - now admin redirect loop

Multiple WebSites - now admin redirect loop

latest magento, latest cpanel, php 7.0.

 

HI, I had completed my first successful install of Magento 2.

I went to configure multiple stores , sites & views, setting the default website to the second website that I entered.

 

This has caused infinite loops when accessing the admin.

In otherwords, now when accessing my admin page, the URL jumps back and forth between my first website domain, and my second (which is now the default).

 

I have done quite a lot of searching and can't seem to find the solution.

 

Thanks for any comments.

Donovan

 

7 REPLIES 7

Re: Multiple WebSites - now admin redirect loop

Hi
Please try to run below commnds from root of your magento store.

 

php bin/magento setup:static-content:deploy
php bin/magento cache:flush
---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Multiple WebSites - now admin redirect loop

Thanks, I get a warning message on the first one:

'[Magento\Framework\Exception\LocalizedException]
  NOTE: Manual static content deployment is not required in "default" and "developer" modes.
  In "default" and "developer" modes static contents are being deployed automatically on demand.
  If you still want to deploy in these modes, use -f option: 'bin/magento setup:static-content:deploy -f''

 

Should I used the f flag?

 

Flushing cache was not effective.

 

Donovan

Re: Multiple WebSites - now admin redirect loop

Tried setting to production mode:

php bin/magento deploy:mode:set production

 

redirect loop on backend still exists

Re: Multiple WebSites - now admin redirect loop

Anyone?  I've searched and searched... so far, haven't not found anything.

Re: Multiple WebSites - now admin redirect loop

finally got back the backend.

Re: Multiple WebSites - now admin redirect loop

So what fixed it bro ?

Re: Multiple WebSites - now admin redirect loop

Changing stuff in the database with phpmyadmin and running some commands with the CLI, then sprinkling magic fairy dust on my PC... then running meetanshi's suggestion.

 

I don't know what exactly fixed it... maybe a combo of making sure all the domains were set right, flushing cache, then re-creating static???   Maybe it was the fairy dust though.

 

Donovan