Sometimes it is necessary to change the domain name for a website.  If you are using Joomla, this will involve making a change to a configuration file and possibly your database.  The following article will take you through the steps for changing your Joomla website URL.


Modifying the Domain Name for Your Joomla Website

Modify the configuration .php file of your Joomla Installation

  1. Login to your cPanel and then go to the File Manager.
  2. Locate the installation files for your Joomla files.  Search for the root folder of your Joomla installation, then open the CONFIGURATION.PHP file in one of the editing options of the File Manager.
  3. Look for the following setting:

    public $live_site='domain_name.com';

    The "domain_name.com" represents the current setting.  Below the "new_domain.com" represents your new domain name. Replace the text of the current domain name with your new domain name.

    public $live_site='new_domain_name.com';

  4. Once you have completed the change, click on SAVE CHANGES in your editor. 

 

Change the Database Settings of Your Joomla Installation

  1. Login to your cPanel.
  2. Scroll down to the DATABASES section and click on phpMyAdmin.
  3. Select your Joomla database and then 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 drive.
  5. Open the SQL file 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. Go back to phpMyAdmin and then IMPORT your updated SQL file back in as the SAME Joomla database.

This completes the steps necessary to change the domain name for your Joomla website.  Remember that the changes for the database might not be necessary as it depends on how you configured your Joomla website.  If you require further information on Joomla, please go to the Getting Started Guide:  Joomla.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.