forked from binarymaster/3WiFi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
34 lines (29 loc) · 1.4 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
Options -Indexes
RewriteEngine on
# Redirect legacy pages
RewriteRule left.html index.php?redir=home [NC,L,QSA]
RewriteRule main.html index.php?redir=home [NC,L,QSA]
RewriteRule devicemac.html index.php?redir=devmac [NC,L,QSA]
RewriteRule ^(['_A-Za-z]+).html index.php?redir=$1 [NC,L,QSA]
RewriteRule ^(map[0-9]*+).php index.php?redir=map [NC,L,QSA]
RewriteRule find_ranges.php index.php?redir=ranges [NC,L,QSA]
# Rewrite for simple URIs
RewriteRule home$ index.php?page=home [NC,L,QSA]
RewriteRule rules$ index.php?page=rules [NC,L,QSA]
RewriteRule faq$ index.php?page=faq [NC,L,QSA]
RewriteRule apidoc$ index.php?page=apidoc [NC,L,QSA]
RewriteRule map$ index.php?page=map [NC,L,QSA]
RewriteRule find$ index.php?page=find [NC,L,QSA]
RewriteRule ranges$ index.php?page=ranges [NC,L,QSA]
RewriteRule devmac$ index.php?page=devmac [NC,L,QSA]
RewriteRule wpspin$ index.php?page=wpspin [NC,L,QSA]
RewriteRule upload$ index.php?page=upload [NC,L,QSA]
RewriteRule graph$ index.php?page=graph [NC,L,QSA]
RewriteRule stat$ index.php?page=stat [NC,L,QSA]
RewriteRule admin$ index.php?page=admin [NC,L,QSA]
RewriteRule user$ index.php?page=user [NC,L,QSA]
# 404 page
ErrorDocument 404 /index.php?page=404
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript application/json application/json-p
</ifModule>