Sometimes, you may need to take your website offline temporarily. Whether you’re performing maintenance, updating content, or troubleshooting issues, Hostinger provides several ways to deactivate your site without deleting it permanently. In this guide, you’ll learn the best methods to temporarily deactivate your website on Hostinger effectively.
Why Temporarily Deactivate a Website?
There are several reasons why you might want to take your website offline for a while:
- Maintenance and Updates: When implementing major updates, making changes to content, or restructuring your website, it’s best to deactivate it temporarily to prevent visitors from experiencing issues.
- Security Concerns: If your site has been hacked or contains vulnerabilities, you may want to pull it offline while addressing the situation.
- Testing Purposes: If you’re testing new features or plugins, temporarily deactivating your live site can prevent disruptions for users.
Methods to Temporarily Deactivate Your Website on Hostinger
There are multiple ways to take your site offline on Hostinger. Below, we’ll go over the most effective methods.
1. Using Hostinger’s “Enable Maintenance Mode” Feature
Hostinger provides a built-in maintenance mode that allows you to temporarily hide your website while displaying a message to visitors.
- Log into your Hostinger Control Panel.
- Go to Website and select Manage for the site you want to deactivate.
- Look for the Maintenance Mode option.
- Enable it and enter a message that visitors will see while your site is offline.
- Click Save and your website will temporarily display the maintenance message instead of its normal content.
This method is ideal for quick updates and ensures that visitors are aware your site is undergoing maintenance.

2. Renaming the Public_HTML Folder
A more technical approach to deactivating your website is renaming the public_html folder. This temporarily makes your site inaccessible.
- Go to your Hostinger File Manager or access your site via FTP.
- Locate the public_html folder.
- Rename it to something like public_html_disabled.
- Your website will now return a 404 error to visitors.
- To restore your website, simply rename the folder back to public_html.
This method is useful if you want to completely block access to the website while performing significant changes.
3. Redirect Visitors to a Temporary Page
If you want visitors to see a temporary message instead of a broken page, you can set up a redirection.
- In your Hostinger File Manager, open the .htaccess file (or create it if it doesn’t exist).
- Add the following lines at the top:
RewriteEngine On RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC] RewriteRule ^(.*)$ /maintenance.html [R=503,L]
- Create a simple maintenance.html file and upload it to your site’s main directory.
- Visitors will now see your custom maintenance page instead of your website.
To bring your site back online, simply remove the redirection rules from .htaccess.
4. Disabling the Website via Hostinger’s hPanel
Another quick option is disabling the website through Hostinger’s control panel:
- Go to hPanel and select your website.
- Under Hosting settings, look for the site management options.
- Find and disable the website temporarily.
- This action will make your website inaccessible until you enable it again.
This method is simple and doesn’t require any code edits.

Best Practices When Taking Your Website Offline
Before you deactivate your website, keep these best practices in mind:
- Notify Your Visitors: If your website has regular traffic, letting users know in advance about maintenance can prevent confusion.
- Backup Your Website: Always create a backup before making any major changes. This ensures that you can restore your website if anything goes wrong.
- Set a Deadline: Try to keep your downtime to a minimum. If possible, schedule maintenance during periods of low traffic.
Bringing Your Website Back Online
Once you’re ready to bring your website back, simply reverse the deactivation steps. If you used maintenance mode, disable it; if you renamed the public_html folder, restore its original name; and if you used redirection, remove the rules.
After reactivating your website, make sure to clear your cache and test different pages to ensure everything loads correctly.
Final Thoughts
Temporarily deactivating your website on Hostinger is a straightforward process. Whether you choose maintenance mode, renaming your public folder, or setting up redirections, each method serves different needs. Pick the best approach based on your situation and ensure that your website returns to normal as soon as possible.
By following these steps, you can effectively manage downtime while keeping your visitors informed and minimizing disruptions.