How to Change Joomla site URL in cPanel hosting ?
Joomla is a free and powerful open-source content management system (CMS) using which websites can be created for free. It is coming as a script in Softaculous given by Silicon House in Linux reseller hosting. In this article, you will learn about changing Joomla site URL via phpMyAdmin.
To change the joomla site URL, you can follow the below procedure :
First you need to edit your configuration.php file
1. Login to your cPanel and then go to the File Manager
2. Search for the root folder of your Joomla installation under public_html, then open the CONFIGURATION.PHP file in one of the editing options of the File Manager
3. Find the setting:
public $live_site=’domain_name.com’;
to
public $live_site=’new_domain_name.com’;
4. Once the changes are done, Click on “Save changes”
Change the Database Settings of Your Joomla Installation
1. Login to cPanel of the website
2. Access to PhpMyAdmin under Databases
3. Select the database associated with the joomla installation and click on EXPORT in the top menu after the database is selected. The exported format will be SQL (e.g. filename.sql)
4. Save the resulting SQL file to your local hard disk
5. Open the exported SQL file that you wish to edit in a TEXT EDITOR (e.g. Notepad.)
6. Find and Replace all of your old URLs with the new one. Note: the default keyboard shortcut for “find and replace” is CTRL+H (hold down your control key and click on ‘H’) – this will bring up the Find and Replace dialog
7. Once you have replaced all of the old URLs with your domain name save the SQL file
8. Next for safer side, you can create a new database and restore the .SQL file on the new database. To import a database please follow the procedure here.
9. New database details can be updated in your database configuration file thru file manager > configuration.php
Now you have changed the Joomla site URL.