cancel
Showing results for 
Search instead for 
Did you mean: 

I changed the "bace url" and I can't log in anymore

I changed the "bace url" and I can't log in anymore

I can no longer log in as an administrator.
I can no longer access the Magento2 admin panel

 

1. (I want to change my home settings.)

2. In the admin page, add "jp/" at the end of URLs in "General" > "Web" > Base URLs
(I wanted to create a JP home in store view.)

3. Only on the admin screen side, the / jp / directory is lowered, it does not work with CSS, JS, etc. and cannot be saved again.

4. Log out (time out?) Then I can no longer log in to the admin panel.

When I go to the login URL, it redirects me to jp/ additional URL and I get a 404.

 

------ ...

I want to login.

I want to delete the / jp / and save it.

 

I would appreciate knowing how to deal with this. Thank you for your help.

4 REPLIES 4

Re: I changed the "bace url" and I can't log in anymore

Hello @anakaokacrc93d 

 

The web URL is stored in table core_config_data.

 

So you need to open that table and revert your change directly from the database.

 

I hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: I changed the "bace url" and I can't log in anymore

Hello @anakaokacrc93d 

 

You can setup Magento domain by following command :

SECURE URL

php bin/magento config:set web/secure/base_url https://NEW_DOMAIN/

And

UNSECURE URL

php bin/magento config:set web/unsecure/base_url http://NEW_DOMAIN/


Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: I changed the "bace url" and I can't log in anymore

I faced this problem 1 week back but my friend john Official Site simple explain me what to do and I come over on it 

Re: I changed the "bace url" and I can't log in anymore

Thank you all for your answers.

I have never worked with databases and have not been able to try the answers you have given. I am very sorry.

I will start by installing mysql and learning the basics.