Creating Error 404 Mechanism on (Linux Webhosting)

Do you want to share WYSIWYG Web Builder tips, tricks, tutorials or useful HTML code? You can post it here...
(no questions or problems please, this section is not monitored by support).
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.

Post Reply
User avatar
Posts: 2020
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom

Creating Error 404 Mechanism on (Linux Webhosting)

Post by zinc »

This design for IONOS hosting which I use. It might work with others as well:

Please Note:
Custom error messages apply to all of the domains in the package where the website is located.

1. Create a file named .htaccess and add the following content:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /error_404.html
ErrorDocument 404 /error_404.html

2. create the page error_404.html in WWB.

Place the files .htaccess and error_404.html in the root directory of your website. After a few minutes, the changes take effect, and the new error message appears if the corresponding error occurs.
Running WYSIWYG Web Builder since 2007...
Post Reply