0

When I have install Magento from localhost to Live environment. Front End of Website working fine But Admin Panel Shows error "This page isn’t working mysite.com redirected you too many times."

enter image description here

0

@praful can you please check in DB table core_config_data. In path column search for web/url/redirect_to_base is set to 0 if it is set to 1.

5
  • @ Sanjay Vadadoriya Dont have any data into the database
    – Praful
    Jan 23 '20 at 10:03
  • @praful can you please try with command php bin/magento config:set web/url/redirect_to_base 0. check after clean cache. Jan 23 '20 at 10:29
  • Its also not working same error for admin
    – Praful
    Jan 23 '20 at 10:37
  • @praful remove rm -rf var/ generated/ and clear cookies too! Jan 23 '20 at 10:58
  • I was do that But Same Result. Not working Admin Panel
    – Praful
    Jan 24 '20 at 9:13
0

Check if you are using custom url for admin and disable the use_custom in database:

select * from core_config_data where path like '%admin/url/%'

| admin/url/custom          | default | 0        | https://www.yourlivesite.com/admincustom/ |
| admin/url/use_custom      | default | 0        | 1                             |
| admin/url/use_custom_path | default | 0        | 0

set them to

 | admin/url/custom          | default | 0        | https://www.localurl.com/admin/ |
    | admin/url/use_custom      | default | 0        | 0                             |
    | admin/url/use_custom_path | default | 0        | 0

Do :

bin/magento cache:flush
bin/magento setup:upgrade
bin/magento setup:static-content:deploy 
10
  • By using Select query I am not getting any data.
    – Praful
    Jan 23 '20 at 11:16
  • open your database in phpmyadmin , and manually go to core_config_data table , search for path admin/url Jan 23 '20 at 11:17
  • Like this cl.ly/376f9c2507bb . Or you can try the query again , i forgot a typo on that ' Jan 23 '20 at 11:22
  • By this also not getting any data. Mysql return empty data.
    – Praful
    Jan 23 '20 at 11:26
  • I add this ' also but then also get empty data
    – Praful
    Jan 23 '20 at 11:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.