Joomla Offline Mode: Put Site in Maintenance
In this article
Putting your Joomla site offline is the quickest way to hide it from visitors while you perform updates, redesigns, or fix errors. It shows a clean "Site Offline" message instead of broken pages, and it lets you work without worrying about live traffic. You can do this in two ways: through the Joomla Administrator (the easiest) or by editing the configuration.php file directly (useful if you can't log in). This guide covers both methods, plus what to do if something goes wrong.
What You'll Need
- Access to your Joomla administrator panel (usually at
yourdomain.com/administrator). - Your Joomla administrator username and password.
- If you can't log in, you'll need FTP or cPanel File Manager access to edit the configuration.php file.
Step-by-Step
Method 1: Using the Global Configuration (Recommended)
- Log in to your Joomla administrator. Go to
yourdomain.com/administratorand enter your credentials. - Open Global Configuration. In the top menu, click System → Global Configuration. (In older Joomla versions, it's under Site → Global Configuration.)
- Set the site to offline. In the Site tab, look for the Site Offline setting. Toggle it to Yes.
- Add a custom offline message (optional). Below that, you'll find the Offline Message field. Enter something like "We're performing scheduled maintenance. Please check back soon." If you leave it blank, Joomla uses a default message.
- Save. Click the Save button in the toolbar. Your site is now offline to the public.
Method 2: Editing configuration.php (When You Can't Access Admin)
If you're locked out of the admin panel (e.g., after a failed update), you can still put the site offline by editing the configuration file.
- Connect via FTP or cPanel File Manager. Use an FTP client like FileZilla, or log into your hosting cPanel and open the File Manager.
- Navigate to your Joomla root directory. This is the folder where
configuration.phplives (usuallypublic_htmlorwww). - Download or open the file. Right-click and download
configuration.phpto edit it locally, or use the File Manager's code editor. - Find the line:
public $offline = false; - Change
falsetotrue. It should look like:public $offline = true; - Save and upload. Save the file and upload it back to the server, overwriting the original. Your site is now offline.
Common Mistakes
- Forgetting to save. In the admin, if you don't click Save or Apply, the change won't take effect.
- Editing the wrong file. Some users accidentally edit
configuration.php.bakor a backup file. Make sure you're editing the liveconfiguration.php. - Not clearing the cache. After taking the site offline, your browser might still show the old cached version. Clear your browser cache or check in a private window.
- Leaving the site offline after maintenance. It's easy to forget to switch it back. Set a reminder or a calendar event.
Tips
- Use a custom offline message. A friendly message with an expected return time reduces visitor frustration.
- Test after going offline. Open your site in a private/incognito window to confirm the offline page appears correctly.
- Consider a maintenance plugin. For more advanced control (like allowing admin IPs to see the site), plugins like "Akeeba Admin Tools" or "Maintenance Mode" offer extra features. But the built-in method is sufficient for most cases.
- Backup before major changes. Even with the site offline, it's wise to have a recent backup before running updates or making structural changes.
Troubleshooting
I set the site offline, but it still shows the live site.
- Clear your browser cache and try again in a private window.
- Check if you're using a caching plugin or CDN (like Cloudflare). Purge the cache in those services as well.
- Verify that the
configuration.phpfile is writable. If not, the save might not have worked. Check the file permissions (should be 644 or 444).
I edited configuration.php, but the site still shows online.
- Double-check that you changed the correct line. Look for
public $offline = true;(notfalse). - Ensure the file was uploaded to the correct location. The root directory is where
index.phpandconfiguration.phpreside. - If you're using a hosting file manager, make sure the edit was saved before closing the editor.
I can't log in to the admin panel at all.
- Use the configuration.php method to put the site offline. If the problem is a failed update, you may also need to rename the
administratorfolder or restore a backup, but that's beyond the scope of this guide.
The offline page looks broken or shows an error.
- This often happens if your template's offline.php file is missing or corrupted. You can override the offline message by editing the
offline.phpfile in your template'shtmlfolder, or simply use the default Joomla offline page by temporarily switching to a core template likecassiopeia(in Global Configuration → Template).
Frequently Asked Questions
Can I still access the admin panel while the site is offline?
Yes, the administrator area (/administrator) remains accessible. You can log in and make changes while the front-end is offline.
Will search engines penalize my site for being offline?
If it's for a short period (a few hours or a day), it's unlikely. For longer maintenance, consider using a 503 HTTP status code (which Joomla does by default when offline) to tell search engines it's temporary. Avoid leaving it offline for days without a proper maintenance page.
How do I put the site back online?
Simply go to Global Configuration → Site → set Site Offline to No and save. If you edited configuration.php, change public $offline = true; back to false.
Can I let specific users see the site while it's offline?
Yes. In Global Configuration → Site, there's a field called Offline Access (or similar). You can select a user group (e.g., Super Users) that can still view the front-end. By default, only Super Users can see it when offline.
What does the offline message look like to visitors?
Visitors see a simple page with your custom message (or the default "This site is down for maintenance.") and a login form for users with permission. The rest of your site's content is hidden.
Is there a way to schedule offline mode?
Joomla doesn't have a built-in scheduler for offline mode. You can use a third-party extension or manually switch it on/off. For planned maintenance, just remember to turn it off after you're done.