-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
45 lines (45 loc) · 1.51 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
########################################################
# ROUTING -> PLAYER
########################################################
<IfModule mod_rewrite.c>
#Options +FollowSymLinks
# Try to fix conflicting rewrite rules set by Wordpress etc:
RewriteEngine Off
RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
# redirect "/player.php?id=xxx" to "/play/xxx"
#RewriteCond %{THE_REQUEST} \s/player\.php\?id=(ID[0-9]+)\s [NC]
#RewriteRule ^ /play/%1? [R=301,L]
# internally rewrite "/play/xxx" to "/player.php?id=xxx"
#RewriteRule ^play/(ID[0-9]+)$ player.php?id=$1 [L]
</IfModule>
########################################################
# Deny access to users.json file
########################################################
<Files "users.json">
Order Allow,Deny
Deny from all
</Files>
########################################################
# Add Mime Types
########################################################
AddType video/ogg .ogm
AddType video/ogg .ogv
AddType video/ogg .ogg
AddType video/webm .webm
AddType audio/webm .weba
AddType video/mp4 .mp4
AddType video/x-m4v .m4v
AddType text/vtt .vtt
########################################################
# Try to set correct server vars
########################################################
<IfModule mod_php5.c>
php_value post_max_size 900M
php_value upload_max_filesize 400M
php_value memory_limit 900M
php_value max_execution_time 259200
php_value max_input_time 259200
php_value session.gc_maxlifetime 1200
</IfModule>