How to Suspend a Website Using DirectAdmin

There may be times when you need to temporarily disable access to a website for maintenance, testing, or security reasons.

This guide explains common ways to temporarily suspend or disable a website using DirectAdmin.


Common Reasons to Suspend a Website

Websites are commonly disabled temporarily for:

  • maintenance work
  • website redesigns
  • security problems
  • malware cleanup
  • unpaid client websites
  • development work
  • migration testing

Before You Start

Before disabling a website, make sure:

  • You can log into DirectAdmin
  • You understand the impact on visitors
  • You have backups available if needed

If you have not logged in yet, please see:

  • How to Log Into DirectAdmin

Recommended Method — Maintenance Page

For most websites, we recommend displaying a maintenance page instead of completely disabling the website.

This provides a better visitor experience and avoids confusion.


Option 1 — Rename the Main Website File

Step 1 — Log Into DirectAdmin

Open your browser and visit:  https://cp.yourdomain.co.za   (Replace yourdomain.co.za with your own domain name)

Enter your hosting username and password.


Step 2 — Open File Manager

From the DirectAdmin dashboard:

Click: System Info & Files

Then click: File Manager


Step 3 — Open public_html

Navigate to:

public_html
 

Step 4 — Rename the Main Website File

Locate your main website file such as:

index.php

or

index.html

Rename it temporarily.

Example:

 
index_old.php
 

Step 5 — Upload a Maintenance Page

Upload a simple temporary:

index.html

maintenance page.

Visitors will now see the maintenance page instead of the normal website.


Option 2 — Password Protect the Website

You may also restrict access using password protection.

This is useful for:

  • development websites
  • redesign projects
  • private testing

See:

  • How to Password Protect a Directory in DirectAdmin

Option 3 — WordPress Maintenance Plugins

For WordPress websites, you may also use maintenance mode plugins.

Popular options include:

  • SeedProd
  • WP Maintenance Mode
  • Coming Soon plugins

These are useful for:

  • short-term maintenance
  • redesigns
  • temporary announcements

Important Notes

Avoid Deleting Website Files

Do not delete website files unless absolutely necessary.

Temporarily disabling access is usually safer.


Create Backups First

Before making major changes, always create a backup.


SSL Certificates Still Remain Active

Suspending the website does not normally affect SSL certificates.


Troubleshooting

Website Still Shows Old Content

Try:

  • clearing browser cache
  • testing in private browsing mode
  • clearing CDN cache if used

Maintenance Page Not Showing

Check:

  • correct file name used
  • maintenance file uploaded into public_html
  • original index file renamed properly

Website Shows Directory Listing

This usually happens if:

  • no index.html
  • no index.php

exists in the website folder.


WordPress Maintenance Mode Stuck

Sometimes WordPress may become stuck in maintenance mode after updates.

This may require:

  • removing the .maintenance file
  • clearing cache
  • checking failed updates

Helpful Tips

Keep Maintenance Pages Simple

Include:

  • company name
  • short message
  • estimated return time
  • contact information

Test Changes Carefully

Always test:

  • website loading
  • maintenance pages
  • redirects
  • SSL

after making changes.


Notify Customers in Advance

For business websites, notify customers before planned maintenance where possible.


Security Tips

  • Keep backups regularly
  • Use strong passwords
  • Restrict development website access
  • Remove unused plugins
  • Keep WordPress updated
  • website troubleshooting, website suspension
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Change PHP Version in DirectAdmin

Different websites and applications may require different PHP versions to work correctly. This...

How to Check Disk Usage in DirectAdmin

DirectAdmin allows you to monitor how much disk space your hosting account is using. This guide...

How to Check Which PHP Version Your Website Is Using

Different websites and applications may require different PHP versions....

How to Create a Cron Job in DirectAdmin

Cron Jobs allow your hosting account to run scheduled tasks automatically at specific times or...

How to Create a Custom Error Page in DirectAdmin

Custom error pages allow you to display friendly messages when visitors encounter website errors...