-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
27 lines (22 loc) · 1000 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Deny access to .htaccess
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# Hide files of type .png, .zip, .jpg, .gif and .doc from listing
IndexIgnore *.log
# Deny access to files with extensions .ini, .psd, .log, .sh
<FilesMatch "\.(log)$">
Order allow,deny
Deny from all
</FilesMatch>
# Deny access to filenames starting with dot(.)
#<FilesMatch "^\.">
#Order allow,deny
#Deny from all
#</FilesMatch>
ErrorDocument 404 /error.php?title=Code%20404&content=The%20page%20you%20are%20looking%20for%20does%20not%20exist!
ErrorDocument 403 /error.php?title=Code%20403&content=You%20are%20not%20allowed%20to%20acces%20this%20file!
ErrorDocument 500 /error.php?title=Code%20500&content=An%20internal%20Server%20Error%20has%20occured.%20The%20Admin%20was%20informed%20and%20we%20will%20work%20on%20it.
ErrorDocument 400 /error.php?title=Code%20400&content=Your%20request%20could%20not%20be%20handled!
ErrorDocument 503 /error.php?title=Code%20503&content=Service%20currently%20unavailable.