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.

PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

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