skip to Main Content

enter image description here

enter image description here

I use all the methods available on google but nothing worked. Same issue is showing again and again.

After running this command: php bin/magento info:adminuri. It does not show the admin url.

2

Answers


    1. Check for the admin URL in the app/etc/env.php. For example, it can be something like this (Is it frontName empty in your case?). Change the frontname to your preference, clean cache and try again.

      return array (
        'backend' => 
        array (
          'frontName' => 'admin_1onald',
        ),

    2. Check the core_config_data table to find if admin url has been changed from the admin panel

      select * from core_config_data where path like '%custom%';

    check if there are any records for

    - admin/url/use_custom
    - admin/url/custom
    - admin/url/use_custom_path
    - admin/url/custom_path

    If any, adjust > cache clean > try again

    Login or Signup to reply.
  1. Change the admin URL of your store. Run the following command in the root directory of your store:

    php bin/magento setup:config:set --backend-frontname="newadmin"
    

    In the above command, I have set the admin name newadmin so to access the admin panel add /newadmin with your store URL.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search