Hello,
I have changed admin URL using below command after that I got below error and admin url is showing 404 error.
php bin/magento setup:config:set --backend-frontname="admin123"
Here is the error after URL change on frontend
TypeError: explode() expects parameter 2 to be string, null given in /var/www/oredium.com/public_html/vendor/magento/framework/App/Router/Base.php:182 Stack trace: #0 /var/www/oredium.com/public_html/vendor/magento/framework/App/Router/Base.php(182): explode() #1 /var/www/oredium.com/public_html/vendor/magento/framework/App/Router/Base.php(165): Magento\Framework\App\Router\Base->parseRequest() #2 /var/www/oredium.com/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Router\Base->match() #3 /var/www/oredium.com/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Backend\App\Router\Interceptor->___callParent() #4 /var/www/oredium.com/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Backend\App\Router\Interceptor->Magento\Framework\Interception\{closure}() #5 /var/www/oredium.com/public_html/generated/code/Magento/Backend/App/Router/Interceptor.php(26): Magento\Backend\App\Router\Interceptor->___callPlugins() #6 /var/www/oredium.com/public_html/vendor/magento/framework/App/FrontController.php(115): Magento\Backend\App\Router\Interceptor->match() #7 /var/www/oredium.com/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #8 /var/www/oredium.com/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #9 /var/www/oredium.com/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #10 /var/www/oredium.com/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #11 /var/www/oredium.com/public_html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #12 /var/www/oredium.com/public_html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch() #13 /var/www/oredium.com/public_html/index.php(39): Magento\Framework\App\Bootstrap->run() #14 {main}
Hello @ishaqdahot
The error message you encountered indicates that there is an issue with the Admin URL after it has been changed in Magento 2. Here are a few steps you can take to resolve the error:
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9