0

Run this command on SQLyog or other tools.

Your Custom Url: http://localhost/magento2ProjectName/stage3fedex7id4w/

SELECT * FROM core_config_data WHERE PATH LIKE "%admin/url/%";

==================== Get Result after run query =====================

enter image description here

1
  • magento save admin url in env.php file
    – S.P
    Commented May 5, 2022 at 11:21

1 Answer 1

0

Magento does not save admin url in database. except if you had set with custom admin url from backend

magento save admin url in env.php file.

app/etc/env.php file

<?php
return [
    'backend' => [
        'frontName' => 'admin'
    ],

If you had set custom admin url then it would save on database. and you get it database.

SELECT * FROM core_config_data WHERE path LIKE '%admin/url/custom%'

13
  • Thank You For Reply Commented May 5, 2022 at 14:16
  • This is only for custom admin URLs. Commented May 5, 2022 at 14:16
  • if any person adds a custom admin url. Commented May 5, 2022 at 14:19
  • Your solution is working on that. plz check it. Commented May 5, 2022 at 14:20
  • how did you add custom url ?
    – S.P
    Commented May 5, 2022 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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