Knowledge Base Article

I want to change my primary domain name. Will this affect my current Joomla installation?

Joomla is configured to work based on the domain name it is accessed by.  That is why if you change the primary domain name of the hosting account where your Joomla is located you will have to make some re-configurations in the Joomla itself in order to make it work with the new domain. To make the needed re-configuration please follow the instructions below:

1. Go to your cPanel;
2. Click on the File Manager icon;
3. Navigate to the public_html directory;
4. Click on the configuration.php file and choose Edit from the top menu;
7. Locate the following line in the file:


$mosConfig_live_site = 'http://www.domain.com';

8. Change the domain name in this line to the new one;
9. Save the edited configuration.php file.

Now your Joomla is configured to work with your new domain. As soon as your new domain name is fully propagated (up to 48 hours) your Joomla should start to work with the new domain name.



Go to your cPanel --> File Manager and using the yellow folder icons browse to the Joomla website folder. Locate the configuration.php file. Click on it and from the menu at the top right corner open the file in Edit mode.

Browse trough the file's contents and find the following line:

$mosConfig_live_site = 'http://domain.com';

Change this line to reflect the new domain name you use and save it. Go back to your website and refresh it.



Rating

Please indicate if this article was helpful for you.

rating :  3.8 from 5
views :  2238
votes :  35

Valid XHTML 1.0 Strict Valid CSS!