Web Hosting – Site Management Questions
Site management support articles: if you have any questions about managing your website on 20i hosting, here's where to find answers.
What are your default index pages?
On our Linux platform and Managed Cloud Hosting, the following are currently set as default index pages (in order of priority):
Andrew PorterHow do I show custom error pages?
Having a custom error page can have many advantages.
If you wish to customise or brand the default error pages that are shown on your sites it is quick and easy when you web hosting is with us.
Head to Manage Hosting and the package you wish to add the custom error for.
Under ‘Web Tools’ Select the Custom Errors icon.

From here you can configure what action occurs when a particular status code is encountered on the site.

How to set a custom error page
It is really simple to set a custom error page. Select the status (error) code you wish to configure action for, then select the type of action that you want to happen and the final value of the action which will either be a redirect to a page you created for this purpose, external URL or plain text.
For WordPress hosted websites, that means no extra plugin is needed to show a custom error page.
Why set a custom error page?
There are multiple reasons why having a custom error page is beneficial for your website.
- Improved user experience: Customised error pages can provide a better user experience by providing your website visitors with helpful and informative messages instead of generic and unhelpful error messages. A custom error page can include instructions on how to resolve the issue, direct to other helpful pages on the website or provide your contact information.
- Branding and personalization: Individualised error pages can be designed to match the website's branding and style, providing a consistent look and feel. This can help reinforce the website's brand and create a personalized experience for users.
- Reduced bounce rates: A well-designed error page can encourage users to stay on the website and continue browsing, rather than leaving the website due to a frustrating error message. This can help reduce bounce rates and increase user engagement.
- If you are a hosting reseller or a digital agency you can provide this as a service for your customers. They don’t have to worry about error pages when you provide a customised solution for them.
- Error tracking and analysis: Custom error pages can be used to track and analyse errors on the website. This can help website owners identify and resolve recurring errors, improving the overall reliability and performance of the website.
What error code can a custom page be set up for:
You can quick an easy set a custom error page for all 4xx and 5xx error codes.
In detail the error codes are:
|
4xx Client Error |
5xx Server Error |
|
400 Bad Request |
500 Internal Server Error |
|
401 Unauthorized |
501 Not Implemented |
|
402 Payment Required |
502 Bad Gateway |
|
403 Forbidden |
503 Service Unavailable |
|
404 Not Found |
504 Gateway Timeout |
|
405 Method Not Allowed |
505 HTTP Version Not Supported |
|
406 Not Acceptable |
506 Variant Also Negotiates |
|
407 Proxy Authentication Required |
507 Insufficient Storage |
|
408 Request Timeout |
508 Loop Detected |
|
409 Conflict |
510 Not Extended |
|
410 Gone |
511 Network Authentication Required |
|
411 Length Required |
|
|
412 Precondition Failed |
|
|
413 Payload Too Large |
|
|
414 URI Too Long |
|
|
415 Unsupported Media Type |
|
|
416 Range Not Satisfiable |
|
|
417 Expectation Failed |
|
|
418 I'm a teapot |
|
|
421 Misdirected Request |
|
|
422 Unprocessable Entity |
|
|
423 Locked |
|
|
424 Failed Dependency |
|
|
425 Too Early |
|
|
426 Upgrade Required |
|
|
428 Precondition Required |
|
|
431 Request Header Fields Too Large |
|
|
451 Unavailable For Legal Reasons |
|
As an example how a custom error page can look, here is the one we use at 20i

Austin B.How do I set a custom directory index?
By default, our web servers will look for the index.html file in order to know what to display when any given directory is accessed, such as public_html.
You can change which index file is looked-for if you don’t wish to use – or can’t use – the default index.html file. Rules are added within the root .htaccess file to make this work.
To make this easier you can use the 20i tool to set the default directory index:
- Head to Manage Hosting and select the package you wish to update the default directory index for.
- Select the Directory Indexing icon.
- Various common index files are pre-filled. You may wish to add your own or simply select Enable Directory Indexing – we’ll then generate the .htaccess rule and add it to the correct location in your site files to set the desired behaviour.
Austin B.How to modify your hosts file for Windows, macOS and Linux.
Your machine's local hosts file allows you to override DNS for a particular domain or subdomain name.
Chris WrightProviding Access Logs to a Third-Party provider
Some third-party providers may request access logs for investigation (i.e. Google AdWords). You can access these logs from within your My20i account.
- Head to Manage Hosting > Options > Manage
- Select Access/Error Logs
- Select Download Log Files.
This will download all your access and error logs as a .ZIP file which contains all the logs we have for this site.
You can select which logs that you'd like to give to your third-party provider. These logs contain information such as IP addresses and which web pages they've accessed.
Austin B.Is ionCube PHP Loader installed?
The ionCube Loader is a PHP extension often used by setups such as WHMCS - it decodes PHP scripts that have been encoded by the ionCube PHP Encoder. Without this, the scripts cannot be read and so the sites that use them cannot run, so it’s important to know what areas of our hosting have this included.
Lloyd CobbHow do I use the free 20i Website Malware Scanner?
One of the major problems with malware is its persistence. This is why 20i’s free Website Malware Scanner makes daily scans of all the sites within your hosting account. It uses a combination of commercial and in-house tools to provide reports detailing malicious content and its location within your site files.
When malware is located on a site, PHP mail and cron jobs are automatically disabled. We do this to preserve sender reputation across the platform and ensure that any sites that are compromised do not send large volumes of spam emails.
We run daily malware scans on all sites on our system – we will only scan files that the system has detected changes on. If no change has been detected, we won't run a new malware scan on these files.
As a Reseller, you can offer this service to your customers free of charge by simply adding it to your Package Types, so they can use this feature in StackCP.
Note: when we refer to “signatures” in this guide, this is referring to the names given to each item of malicious code detected in a file.
1. Best practices when dealing with malware and infected files
- Check the Malware Report produced by the malware scanner to identify if there are any infected files
- Clean and remove the infected files from your webspace
- Identify any vulnerabilities within the site and secure them
Taking regular backups means that you'll always have a restore point if you do find your site has compromised files. You can do this in My20i or automate the process with Timeline Backups.
Checking the Malware Report
The Malware Scanner shows you a full list of sites that are currently infected within your account. If you’re a 20i Reseller, you can access this list by:
- Logging in to My20i
- Selecting Malware Report
- If any of your sites are currently infected, they will be listed here
The scanner shows details on the package where the infection has been found, the time of the last scan and the number of infected files. To show a more detailed report, select View Report. You will now see the full list of infected files on the site.
You can also access the Malware Scanner on a per-package basis:
- Log into My20i and head to your Manage Hosting area
- Select Options > Manage on the hosting package you wish to scan
- Under Security, select Malware Scan
From here, you can initiate a fresh scan for the site, view the scan history for the package and view a list of any flagged files that have been detected as potentially harmful.
Should the scan return clean without any issues, you’ll see the following:

If the scanner finds any potentially harmful files or signs of a malware infection, however, you’ll instead see the following:

Should any infected files be found on the package, we’ll also add a warning to the package itself to notify you of this. This is visible at the top of the hosting package screen.

Any files that are detected as malware will also show in the File Manager so that you can easily access and review the flagged files.

Note: Infections found marked in red indicate that the file could be a risk to the site.
We also have a yellow ‘warning’ state which shows that the signatures found are unlikely to pose a high risk to the site. For example log files, SQL files and .zip backups files. Essentially, a yellow warning state is for information only and won’t impact the sending of mail.
You can ensure that you're notified of any newly discovered malware by checking the Receive Daily Email Alerts? box. An email will be sent to your primary 20i email address when new malware is found. You can also add additional email accounts to receive malware alerts through your Account Preferences. You may wish to create a dedicated mailbox to receive malware alerts.
Cleaning and removing infected files
In most cases, the best way to resolve an issue with malicious content is to remove the compromised files and replace them with versions from a known clean download. That is, download the software again and replace just the files that have been infected from the initial install.
If the files are not needed, then you could also just delete the files completely.
Sometimes an infected file will just have the attackers script 'injected' in the first or last line of a specific file. Sometimes this can be very obvious, in which case you could look to simply remove the malicious script.
You should do this for all the files that have been found by the Malware Scanner.
Further actions you can take
Remove unnecessary or unused plugins and applications from the site. Doing this will not only reduce the number of potential vulnerabilities but also make general site 'housekeeping' simpler.
You should also make sure that any plugins you're using are always kept fully updated. Outdated software versions are much more likely to have security vulnerabilities - leading to compromised sites.
It may also be worthwhile to change passwords such as your database password and FTP password.
Note: Don’t forget to update any configuration files such as wp-config.php after making the changes.
Rescanning the site
You can re-scan the site on demand. Once you believe you’ve removed the malware, head back to the Malware Scanner and select Scan again.
If all infected files are removed, then PHP mail and cron jobs will be re-enabled automatically and there will be no infected files displayed. The scanner will continue to take daily scans of all your websites to ensure you’re always aware of any sites that have been compromised.
Reudiger DalchowHosting shortcuts: favourite and recent hosting packages
In this guide we’ll learn how about the recent packages list and how to ‘favourite’ packages. By using these features, you can save navigating to hosting package’s Service Overview page. Shortcuts from the My20i homepage are created.
You’ll find both lists on the My20i home page on the right-hand side. Once you have managed a few packages from the Manage Hosting page or favourited any, you’ll be able to see something like this:

Clicking on any of the domains will take you to the Service Overview page for that package.
To ‘favourite’ any packages, you’ll first need to manage the hosting package from the Manage Hosting page. Once on the Service Overview page you’ll see a star icon the top above the search bar:

Once you click the star icon it will turn blue. When you go back to the My20i homepage you’ll see it under the Favourite Packages list.
Utilising these features makes managing packages quicker and easier since you can do it in just one click. This will save time when you manage multiple hosting packages as a reseller or an agency.
Reudiger DalchowWhich PHP functions are disabled on your WordPress platform?
Our WordPress platform has been specifically designed to offer the best security, performance and reliability for WordPress.
Lloyd CobbHow do I use hosting Package Labels?
Package labels can help organise your hosting packages. You can add any kind of label - it's just a text string that you decide. For example, if you wanted to categorise packages that are in development, you might apply a 'Development' tag to them.
Then, on the Manage Hosting page, you can filter by label to find them easily.
To add a hosting Package Label:
- Login to your My20i control panel.
- Head to Manage Hosting -> [select package].
- Down the right hand side, you’ll find the Package Labels section.
- To add a Label, type in the Label field (e.g. Testing) and select Add.
Now when you head back to the Manage Hosting page, you’ll see the drop-down menu allowing you to filter packages by Label (you may need to refresh the page if you've used the 'back' button).
Also, by clicking on a Label you can select all packages with that Label applied.

Here are some examples of Labels you may use:
- Testing
- New Website
- In Development
- Ready for Launch
- Awaiting Client Approval
- Subject to Change
- On Hold
- High Priority
- Low Priority
- Rework
- Personal
- Requires Review
Austin B.How do I specify a custom index page?
By default, the following are seen as default index pages on our Linux Web Hosting platform:
- index.php
- index.html
- index.htm
- index.cgi
- index.rb
- index.py
Should you wish to specify a different/specific filename as your index page, you can do this with DirectoryIndex.
Add the following in the .htaccess file, within the directory you are serving/intend to serve site content from:
DirectoryIndex file.php
file.php should be replaced with the name of the file you wish to make default.
Andrew PorterHow to use the Sitemap Generator
Our Sitemap Generator helps you easily create an XML sitemap that lists all the pages on your website that search engine bots can access, allowing them to crawl and index your site more effectively. In this guide, we’ll show you how to generate a sitemap using the Sitemap Generator available in your 20i dashboard.
Joshua Miner
Jordan Graves
Ben Gayson
