forked from needforschool/netron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
12 lines (11 loc) · 2.3 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
<Files ".*">
Require all denied
</Files>
ErrorDocument 401 "<head><title>Erreur 401 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=401');else window.location.replace('./error.php?e=401');</script></head>"
ErrorDocument 403 "<head><title>Erreur 403 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=403');else window.location.replace('./error.php?e=403');</script></head>"
ErrorDocument 404 "<head><title>Erreur 404 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php');else window.location.replace('./error.php');</script></head>"
ErrorDocument 405 "<head><title>Erreur 405 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=404');else window.location.replace('./error.php?e=405');</script></head>"
ErrorDocument 406 "<head><title>Erreur 406 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=404');else window.location.replace('./error.php?e=406');</script></head>"
ErrorDocument 500 "<head><title>Erreur 500 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=500');else window.location.replace('./error.php?e=500');</script></head>"
ErrorDocument 501 "<head><title>Erreur 501 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=501');else window.location.replace('./error.php?e=501');</script></head>"
ErrorDocument 503 "<head><title>Erreur 503 - Netron</title><script>var pathName = window.location.pathname;var fileName = pathName.split('/').pop();if(fileName == 'error.php') window.location.replace('../error.php?e=503');else window.location.replace('./error.php?e=503');</script></head>"