-
Notifications
You must be signed in to change notification settings - Fork 217
/
.htaccess
41 lines (33 loc) · 1.38 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
Order Deny,Allow
<FilesMatch "\.(conf|php|in)$">
Deny from all
</FilesMatch>
<FilesMatch "^(index)\.php$">
Allow from all
</FilesMatch>
<Files "aowow">
ForceType application/x-httpd-php
</Files>
<Files "prQueue">
ForceType application/x-httpd-php
</Files>
# Block view of some folders
Options -Indexes
DirectoryIndex index.php
# Support for UTF8
AddDefaultCharset utf8
<IfModule mod_charset.c>
CharsetDisable on
CharsetRecodeMultipartForms Off
</IfModule>
# UHD screenshots can get pretty large (cannot be set in config)
php_value upload_max_filesize 20M
php_value post_max_size 25M
RewriteEngine on
# RewriteBase /~user/localPath/ # enable if the rules do not work, when they should
# Mapper-Helper: If you cant provide maps for all locales, redirect the browser
# RewriteRule ^(.*/?)static/images/wow/maps/(frfr|dede|eses|ruru)/(.*)$ $1static/images/wow/maps/enus/$3 [NC]
# accept flattened urls | NYI - need more work :x
# RewriteRule ^([a-z0-9\-]+)$ ?$1 [NC] # /items => ?items
# RewriteRule ^([a-z0-9\-]+)=([^?&]*)$ ?$1=$2 [NC] # /items=4.1 => ?items=4.1
# RewriteRule ^([a-z0-9\-]+)=([^?&]*)[&?](.*)$ ?$1=$2&$3 [NC] # /items=4.1?filter=sl=7 => ?items=4.1&filter=sl=7