Loading...

Knowledge Base

How To Update Magento Website URL

Changing website link might be necessary if you change your business name or if you bought a new domain name. There are two ways on how to change the Magento URL:  

 

Via Magento Admin Page

This process is the easiest and most convenient as it doesn’t need your website hosting access. It only needs your Magento admin logins.

NOTE: These steps are only applicable to Magento users with administration access.

 

  1. Access your Magento admin page. Use the same admin URL set up during Magento installation.
  2. Log in using the username and password set up during Magento installation.

    Screenshot of VD Magento Login Page

     
  3. Perform the Two-Factor Authentication.

    Screenshot of VD Magento Login Page 2 Factor Authentication

     
  4. Click Stores on the menu bar on the left side of the page.

    Screenshot of VD Magento Store Button

     
  5. Click the Configuration option.

    Screenshot of VD Magento Configuration

     
  6. Click Web under General options.

    Screenshot of VD Magento Web Configuration

     
  7. Enter the new website URL in the box provided under Base URLs.

    Screenshot of VD Magento Base URL

     
  8. Enter the new website URL in the box provided under Secure Base URL.

    Screenshot of VD Magento Secure Base URL

     
  9. Click the Save Config button on the upper right side of the page to save the changes made.

    Screenshot of VD Magento Save Config Button


    Try accessing the website with the new URL. The changes should take effect right away.

 

 

Via PhpMyAdmin in cPanel

This process is applicable if you have access to your cPanel. Follow the steps below on how to change the Magento URL of your Magento website.

  1. Log in to cPanel.
  2. Click File Manager.
  3. Go to your Magento website files and locate the env.php file in the file path of app/etc/env.php.
  4. Right click on the file and select Edit.
  5. Click the Edit button.
  6. Scroll down to line 17 and take note of the value indicated on the right of the dbname (database name).

    Screenshot of VD Magento DB Name Env File

     
  7. Go back to cPanel homepage by going back to the previous tab.
  8. Scroll down to the icons under Databases and click phpMyAdmin.

    Screenshot of VD Magento cpanel phpMyAdmin Icon

     
  9. Click the database name that was obtained from Step 6.

    Screenshot of VD Magento phpMyAdmin Click Database

     
  10. Click the table that ends with _core_config_data. The tables on each website can differ in prefix.

    Screenshot of VD Magento phpMyAdmin Config Table

     
  11. Double-click the value of web/unsecure/base_url to edit the URL in the cell.

    Screenshot of VD Magento Edit URL PHPMyAdmin

     
  12. Enter the new URL of your Magento website.

    Screenshot of VD Magento New URL
     
  13. Click anywhere outside the box to save the changes. A pop-up message shown in the screenshot below will indicate that the update has been saved.

    Screenshot of VD Magento Onew Row Affected Prompt


    Try accessing the website with the new URL. The changes should take effect right away.

 

Do not hesitate to contact our Singapore or Australia Support Team if you have further questions.

 

 

 

 

Loading...