Taking the website temporarily offline

From Joomla! Documentation

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎português • ‎português do Brasil • ‎中文(台灣)‎

There may be occasions when you will make your Joomla! website unavailable to visitors for a short time. There is a simple switch in the Administrator that enables you to take your website offline very quickly. It can be returned to service at a later time just as easily.

To Take Your Joomla! Website Temporarily Offline[edit]

To make your Joomla! website unavailable to visitors and showing a simple message, do this:

  1. Log in to the Administrator back-end. To learn how to do this read: Logging In or Out of the Administrator Back-end.
  2. Click the System  Global Configuration in Joomla 4.x or Joomla 5.x.
  3. There are so many configuration options that they need to be divided into separate groups or tabs. The Site tab should be opened at first. If not, select that tab.
  4. Find the Site Offline setting. Click the Yes button (See the screenshot below.)
  5. Optional: By selecting Use Custom Message in the Offline Message menu, you can modify the offline message to display an explanation about the site status.
  6. Select one of the Save toolbar buttons to implement the new settings:
    • The Save toolbar button will save your changes and leave you in Global Configuration.
    • The Save and Close button will save your changes and return you to the Administrator Control Panel.
  7. You should see a message confirming the settings have been changed.

Joomla 5.x[edit]


To Put Your Joomla! Website Online[edit]

Reverse the steps above and make sure the site offline switch is set to No.

Using the htaccess Method (cPanel)[edit]

You can limit access to certain resources of your website by password-protecting the directories they are in. To password-protect a directory with cPanel Hosting Control:

  1. Login into your cPanel. Select the Files section and the open Directory Privacy.
  2. Once you open Directory Privacy, you will see a list of directories.
  3. Click on the directory that you wish to protect with a password.
  4. Fill in a Username and Password at the bottom of the page. Then select Add / modify authorized user.
  5. Once the user is created, select Go Back.
  6. Fill in the Protected Resource Name. This is the message that will show in the login window. Then highlight the user you just created from the Active Users list and click on Save button below the Protected Resource Name.
  7. Verify that your directory has been password-protected. Launch your browser and visit the folder. If the browser prompts you to login, your directory has been protected by a password.