Taking a website offline

With this guide you can easily take a website at bHosted temporarily offline by renaming the public_html folder. Your website files remain intact, so you can simply undo the change later.

Step 1: Log in to DirectAdmin

  1. Go to https://mijn.bhosted.nl and log in with your username and password.
  2. Click on the DirectAdmin Panel in the top left corner.

Step 2: Open the correct folder

  1. Open the root folder of your domain or hosting account.
  2. Look for the public_html folder.
  3. Check that this is the folder containing your website's files.

Note: do you have multiple domains or subdomains? Then they may have their own document root. In that case, adjust the correct folder for the relevant domain.

Step 3: Rename the folder

  1. Right-click the public_html folder and choose Rename.
  2. Enter a new name, for example: public_html_offline

Then confirm the change by clicking rename.

Your website files are not deleted in this process, you only change the name of the folder.

Note: rename the folder of the relevant domain, usually domains/yourdomain.com/public_html, and not just the general public_html shortcut in the root folder of your account. DirectAdmin usually uses a separate document root per domain.

Step 4: Check whether the website is offline

  1. Open the website in a new browser window.
  2. Check both the HTTP and HTTPS versions.
  3. Is the website still accessible? Then check whether the domain uses a different document root or whether a separate folder is set for HTTPS.

Step 5: Putting the website back online

Want to restore the website? This is easily done:

  1. Go back to DirectAdmin → File Manager.
  2. Open the folder where you made the change.
  3. Rename public_html_offline back to public_html.
  4. Open the website again and check that it works again.

Related articles