Customizing server error pages using the .htaccess editor
Custom error pages
You can substitute pages that you designate for the standard server error pages that display when the Web server returns unsuccessful response/status codes. Custom error pages are set in an .htaccess. file. They are useful when you want error pages to match the overall design of your site.'
Set custom error pages
- Log into the .htaccess Editor, and then click Custom Error Pages.
- Select the directory in which you want to set custom error pages. The current settings for the selected directory display in the Current Settings section.
- In the New Custom Error Page section, select the status code for which you want to add a custom error page.
- Enter the full URL or the local path to the file to use as the error page.
- Click Save to add the error page. Optionally, click Reset to return to the previous settings.
- To delete an error page entry, click the delete icon in the Current Settings table.
Important: All subdirectories of the selected directory will inherit the settings for the directory, unless you apply different settings to specific subdirectories.
To disallow ads on non-custom error pages
If you do not wish to customize your error pages, iPage will provide standard error pages, indicating to the visitor that they landed on an error page. These non-customized error pages will contain ads from various vendors.
Note: Regardless of the setting for the non-customized error pages, no ads are placed on the customized error pages - those appear exactly as you designed.
To remove ads from your non-customized error pages:
- Log into your control panel and go to the .htaccess editor > Custom Error Pages
- At the bottom of the page, find the Ads on non-custom error pages section
- Check the box Do not place ads on my non-custom error pages
- Click OK next to the check box