The modification of the base URL in Magento can be done by 3 methods:

1. Administration panel
- log in to the administration panel of the Magento platform
- In the main menu - click on System-> Configuration
- In the menu on the left side of the General section, click on the Web
- open the drop-downs for Unsecure and Secure - locate the base URL and replace it with the desired URL

2. Through PhpMyAdmin
- log in to your cPanel account
- from the MySQL section open PHPMyAdmin
- click on the database used by your Magento website
- a list of tables sorted alphabetically will open - locate the core_config_data table
- expand the number of rows ex: to display 100
- locate web/unsecure/base_url and web/secure/base_url rows and click Edit for each line
- change the URL with the desired one and press OK
- in the Value table - change the value with the desired one
- clear the cache, your site will be displayed with the URL set

3. Command line

We recommend that you make these changes only if you are familiar with the command line and MYSQL commands.

- connect to your site's database via SSH
- run the mysql mysql - u $utilizator_baza -p$pass (replace the values with those corresponding to your site)
- enter the password of the database user
- access the database use databasename
- run the following command:

select * from core_config_data where path like '%base%url%';


- to change the basic URL, execute the commands below, replacing in lines the desired data:

update core_config_data set value = 'http://www.domeniu.ro/' where path = 'web/unsecure/base_url';
update core_config_data set value = 'http://www.domeniu.ro/' where path = 'web/secure/base_url';

 

If you encounter problems in applying the above instructions please contact us. HostX offers the best Magento web hosting service and can assist you in solving your problems.

Was this answer helpful? 0 Users Found This Useful (0 Votes)