Like most PHP based Content Management Systems, Joomla depends on a domain name to work properly. If your domain has not yet been pointed to our Nameservers, Joomla may not work properly if you enable SEF URLs (Search Engine Friendly URLs) or install plugins or modules. A common issue is receiving 404 errors after enabling SEF URLs.

joomla-temp-404

Fortunately, with just a couple of quick changes to your Joomla configuration file and your .htaccess file, you can use and test your new Joomla installation through your temporary URL until you're ready to point your domain to our Nameservers.

Before we begin the process of changing the configuration file, if you do not know your temporary URL, please see our article How do I Test my Website using the Temporary URL.

Joomla Temporary URL Installation and Edits

  1. First, install Joomla through Fantastico De Luxe in your cpanel.
  2. Using the cPanel File Manager, navigate to the directory where you installed Joomla and locate the configuration.php file.

    joomla-config-file

  3. Open this file for editing by choosing either the Edit or Code Editor button in the top menu (you can also right click the file and select one of these options).

  4. Inside the configuration.php file, find the following line:

  5. public $live_site = '';

  6. Between the single quotes (' ') insert your domain's temporary URL. For example, we have created an addon domain named whhjoomla.com so the temporary URL would be: http://whub21.webhostinghub.com/~whhsup5/whhjoomla.com. If we were installing to our main domain our temporary URL would be: http://whub21.webhostinghub.com/~whhsup5.

  7. public $live_site = 'http://whub21.webhostinghub.com/~whhsup5/whhjoomla.com';

  8. Save and close the configuration.php file.
  9. Next, open the .htaccess file which you would have created when you enabled SEF URLs.
  10. Look for the following line:

  11. # RewriteBase /

  12. Remove the # sign at the beginning of the line (this denotes a comment) and add the last part of your temporary URL, starting with the tilde (~). Using our example, I will add ~whhsup5/whhjoomla.com to this line. If I was working with the main domain (document root public_html) I would simply add the cPanel user name (~whhsup5)

  13. RewriteBase /~whhsup5/whhjoomla.com

  14. You can now visit your Joomla site and navigate through the various pages without error.

    joomla-temp-fixed

Switching From the Temporary URL to Your Domain Name

Once you point your domain to our Nameservers and have allowed 4-24 hours for DNS to propagate, you will want to remove the changes to your configuration.php and .htaccess files.

  1. Using our example, open the configuration.php file for editing again and look for:

  2. public $live_site = 'http://whub21.webhostinghub.com/~whhsup5/whhjoomla.com';

  3. Edit this to:

  4. public $live_site = '';

  5. Save and close the file.

  6. Then, open the .htaccess file and locate the following the RewriteBase line:

  7. RewriteBase /~whhsup5/whhjoomla.com

  8. Add # to the beginning of this line to comment it out:

  9. #RewriteBase /~whhsup5/whhjoomla.com

  10. Now your site will work through your domain name (in our example this would be whhjoomla.com)
Did you find this article helpful?
here is a comment

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Christi Nickerson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Site under brute force attack
  2. URLs in Installation of WordPress Don't Redirect
  3. Choosing a Directory With WordPress

Support 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.