This repository has been archived by the owner on Apr 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.htaccess
118 lines (82 loc) · 3.54 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
RewriteEngine On
RewriteBase /
# RewriteCond %{REQUEST_URI} !/maintenance [NC]
#RewriteCond %{HTTP_HOST} !^test\.seedofandromeda\.com$ [NC]
# RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
# serve default 503 response
#RewriteRule .* http://www.seedofandromeda.com/maintenance.php [R=503,L]
# serve custom 503 response
#ErrorDocument 503 /maintenance.php
#<IfModule mod_headers.c>
# 3600 = 60 minutes
# 86400 = 1 day
# 604800 = 1 week
# Header always set Retry-After "3600"
#</IfModule>
php_value upload_max_filesize 300M
php_value post_max_size 301M
RewriteRule ^blogs/creating-a-region-file-system-for-a-voxel-game$ /blogs/1-creating-a-region-file-system-for-a-voxel-game [L,R=301]
RewriteRule ^blogs/designing-the-world-character$ /blogs/2-designing-the-world-character [L,R=301]
RewriteRule ^blogs/crafting-research-and-intergroup-cooperation-volume-one-part-one$ /blogs/3-crafting-research-and-intergroup-cooperation---volume-i [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/thumb\.php -f
RewriteCond %{REQUEST_URI} !^community/
RewriteCond %{REQUEST_URI} !^Forums/
RewriteRule ^(.*)_thumb_([0-9]+)x([0-9]+).(jpg|png|gif)$ /thumb.php?i=$1.$4&w=$2&h=$3 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/index\.php -f
RewriteCond %{REQUEST_URI} !^community/
RewriteCond %{REQUEST_URI} !^Forums/
RewriteRule ^(.*)$ /index.php?page=$1 [QSA,L]
#########################
# redirect no-www to www
#########################
RewriteCond %{HTTP_HOST} !^www\.seedofandromeda\.com$ [NC]
#RewriteCond %{HTTP_HOST} !^test\.seedofandromeda\.com$ [NC]
RewriteCond %{HTTP_HOST} !^www\.soatest\.local$ [NC]
RewriteRule ^(.*)$ http://www.seedofandromeda.com/$1 [R=301,L]
#Redirect old download location to new one with counter:
Redirect permanent /files/ http://files.seedofandromeda.com/
Redirect permanent /SeedofAndromeda/Game/Versions/ http://files.seedofandromeda.com/game/
Redirect permanent /SeedofAndromeda/ http://files.seedofandromeda.com/game/
Redirect permanent /update.php http://updater.seedofandromeda.com/update.php
Redirect permanent /screenshots https://www.seedofandromeda.com/images
Redirect permanent /screenshots-admin https://www.seedofandromeda.com/images-admin
#Hide .git directories and files if they get uploaded to the web server
RedirectMatch 404 /\.git
# PHP error handling for production servers
# disable display of startup errors
php_flag display_startup_errors off
# disable display of all other errors
php_flag display_errors off
# disable html markup of errors
php_flag html_errors off
# enable logging of errors
php_flag log_errors on
# disable ignoring of repeat errors
php_flag ignore_repeated_errors off
# disable ignoring of unique source errors
php_flag ignore_repeated_source off
# enable logging of php memory leaks
php_flag report_memleaks on
# preserve most recent error via php_errormsg
php_flag track_errors on
# disable formatting of error reference links
php_value docref_root 0
# disable formatting of error reference links
php_value docref_ext 0
# specify path to php error log
php_value error_log /var/zpanel/hostdata/seedofandromeda/public_html/seedofandromeda_com//PHP_errors.log
# specify recording of all php errors
php_value error_reporting 999999999
php_value error_reporting -1
# disable max error string length
php_value log_errors_max_len 0
# protect error log by preventing public access
<Files PHP_errors.log>
Order allow,deny
Deny from all
Satisfy All
</Files>