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.
Please try to run below commnds from root of your magento store.
php bin/magento setup:static-content:deploy php bin/magento cache:flush
Thanks, I get a warning message on the first one:
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.
Tried setting to production mode:
php bin/magento deploy:mode:set production
redirect loop on backend still exists
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.