HTAccess own Error Documents

ID - _BUGFISH - E#41
^Top
<< Back
Mobile-Menu










HTAccess own Error Documents
Category: HTACCESS
Sub-Category:
Creator: Jan-Maurice Dahlmanns
Created: 2020-08-26 01:18:27
Modified: 2024-11-19 06:14:25
Views: 741

Caution: I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.

Enter this in your Websites .htaccess main directory to let the server redirect
HTTP404 Errors or misc to a specified site.

ErrorDocument 400 /error/400.php
ErrorDocument 401 /error/401.php
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.php
ErrorDocument 500 /error/405.php

 

This is just an example where for 404 errors the page /error/400.php will be loaded.
The url will stay the same - user will not this redirect in the url bar.

Currently 0 Upvotes!

captcha image
System - 2024-11-05 18:28:31
Commenting System Initialized! Have a very nice day!

Switches: 0 | Arrivals: 9 | Visits: 9
This Website is using Session Cookies for Site Functionality.