-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
26 lines (18 loc) · 1.37 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
RewriteEngine on
# remove "www" from urls
# http://stackoverflow.com/questions/6515081/htaccess-remove-www-from-url-directories
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
RewriteRule ^manage/ manage.php [L]
RewriteRule ^([a-zA-Z0-9]+)/manage/set/ manage.php?site=$1&set=1 [L]
RewriteRule ^([a-zA-Z0-9]+)/manage/ manage.php?site=$1 [L]
RewriteRule ^([a-zA-Z0-9]+)/proxy/([a-z]+)/([a-zA-Z0-9]+)\ ([0-9]+)\ (.*) proxy.php?site=$1&type=$2&id=$4 [L]
RewriteRule ^([a-zA-Z0-9]+)/post/([0-9]+)/ post.php?site=$1&id=$2 [L]
RewriteRule ^([a-zA-Z0-9]+)/index/([0-9]+)-([0-9]+)/(.*) post_index.php?site=$1&page=$2&limit=$3&search=$4 [L]
RewriteRule ^([a-zA-Z0-9]+)/index/([0-9]+)/(.*) post_index.php?site=$1&page=$2&search=$3 [L]
RewriteRule ^([a-zA-Z0-9]+)/index/(.*) post_index.php?site=$1&page=1&search=$2 [L]
RewriteRule ^([a-zA-Z0-9]+)/api/similar_tags/(.*) api.php?site=$1&handler=similar_tags&query=$2 [L]
RewriteRule ^([a-zA-Z0-9]+)/favicon/post/ icon.php?site=$1&type=post [L]
RewriteRule ^([a-zA-Z0-9]+)/favicon/index/ icon.php?site=$1&type=index [L]
RewriteRule ^tool/md5/([a-zA-Z0-9]+)/ getname.php?hash=$1 [L]
RewriteRule ^tool/filename/([a-zA-Z0-9]+)/([0-9]+)/ getname.php?site=$1&id=$2 [L]