The Web Template Editor interface allows you to create placeholder web pages. Visitors see these pages when they navigate to a site on your server that meets one of the following conditions:
- The domain's owner did not configure the site, or no owner exists for the site on your server.
- The domain points to an incorrect IP address.
- The site moved.
- A connection or firewall problem exists on the site.
- The domain's owner suspended the site.
The placeholder pages that you create for a specific account only appear for that account's sites. For example, placeholder pages that you create for theroot
user do not appear for sites that reseller accounts own.
Important:
- When you configure your template, you must perform the following actions:If you redirect a domain, visitors will not see placeholder pages. To ensure that visitors see these pages, you must copy the finished pages from the
/var/cpanel/webtemplates/root/english/
directory to the/home/username/public_html
directory of the destination domain.- Store the images for these templates in the
/usr/local/cpanel/img-sys/
directory. When you link to the images, provide links that are relative to the/usr/local/cpanel/
directory (for example,/img-sys/myimage.jpg
). - When you link to images or files outside of the
img-sys
directory, use the[% data.protocol %]
tag as a substitute forhttp
orhttps
.
- Store the images for these templates in the
Edit a template file
To modify a template file from within the WHM interface, perform the following steps:
- Select the tab that corresponds to the template to edit. For more information, read the Template types section.
- Make the desired changes.
- To view your changes before you finish, click Preview.
- Click Save.
- To revert to the most recent version of the template, click Revert.
-
To discard your changes and revert to the default template, click Revert to Default.
Upload a template file
To upload a custom website template, perform the following steps:
- Select the tab that corresponds to the template that you wish to edit. For more information, read the Template types section.
- Under Upload Your Own Template, click Choose File.
- Browse to the template file on your local computer.
- Click Upload Template.
Template types
Template type
|
Description
|
File
|
---|---|---|
Default Website Page |
This template displays if any of the following statements are true:
Notes:
|
/var/cpanel/webtemplates/root/english/default.tmpl |
Account Move | This template displays if the site moved. |
|
Connection Selection |
This template displays if a connection or firewall problem exists on the site. In addition to the
|
/var/cpanel/webtemplates/root/english/redirect.tmpl |
Account Suspended | This template displays if the account's owner or the root user suspended the site. |
/var/cpanel/webtemplates/root/english/suspended.tmpl |