Fix Suspended Page in WHM Print

  • cpanel, suspended page, suspension
  • 0

This article goes over a problem some customers have when using the Suspended Page option of WHM. When suspending a domain in WHM, the domain that was suspended may redirect to the WHM login screen.  To fix this, the steps below should be followed.

Each time an account is suspended, WHM creates an .htaccess file in/home/<username_of_suspended_site>/www/ (where <username_of_suspended_site> is the username of the account that is suspended) with the following information:

RedirectMatch .* http://<hostname>/suspended.page/

Options -Includes -Indexes -ExecCGI

If <hostname> is not actually hosted on the server WHM is installed on, then the hostname needs to be updated on the server. For example, if server.domain.com points to the IP of WHM but domain.compoints off of the server WHM is on, this is a problem. As such, the hostname needs to be updated  within cPanel to something such as server.domainhostedonserver.com and then add the A record in WHM or our DNS.

After doing so, log into the server via SSH and copy the files in/usr/local/apache/htdocs/suspended.page/ to /home/<username_of_hostname>/www/ (where the 'username_of_hostname' is the username of the domain which is now the hostname) by running the command below via SSH:

cp -R /usr/local/apache/htdocs/suspended.page/ /home/username_of_hostname/www/

Chown the files to the correct user. Be CAREFUL doing this.

cd /home/<username_of_hostname>/www/ (where <username_of_hostname> is the user on the server noted above)
chown -R username.username (where username is the actual username)

Then you should un-suspend the site that was incorrectly resolving to the WHM login page and then re-suspend it. What this does is creates a new .htaccess file with the correct information in it now (i.e. the correctly updated hostname for the server). Then you can go to the suspended domain in a browser and it will show the suspended page rather than the WHM/cPanel login screen.


Was this answer helpful?

« Back