Changing the website URL in Joomla
If you migrate your Joomla site to a new server or domain, you may need to update the site URL so that pages display correctly. On ruachost.com, this is done by editing the Joomla configuration file.
Why Change the URL?
Section titled “Why Change the URL?”- After migrating Joomla to a new hosting account or server.
- When switching from HTTP to HTTPS.
- If you change your domain name.
- To correct display issues caused by mismatched URLs.
Steps to Change the Joomla Website URL
Section titled “Steps to Change the Joomla Website URL”-
Log in to your hosting account via SSH or File Manager.
-
Navigate to the directory where Joomla is installed.
-
Open the
configuration.phpfile in a text editor. -
Locate the line that begins:
public $live_site = -
Update it with your new site URL. For example:
public $live_site = 'http://www.example.com'; -
Save the file.
Important Notes
Section titled “Important Notes”-
If the
$live_sitesetting is blank, do not change it. Only update it if a domain name is already defined. -
Also check the following lines in
configuration.php:public $log_path =public $tmp_path =Make sure they point to the correct paths for your Joomla installation.
-
Always back up your site before making configuration changes.
-
Clear Joomla cache after updating the URL.