This repository has been archived by the owner on Aug 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.htaccess
33 lines (27 loc) · 1.74 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
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index\.
RewriteCond %{REQUEST_URI} !^/$
RewriteRule ^([^/]*)$ /?page=$1 [L,QSA]
RewriteRule ^([^-]*)/([^-]*)/$ /?page=$1&act=$2 [QSA,L]
RewriteRule ^upload/([^/]*)$ /?page=upload&act=$1 [L]
RewriteRule ^torrents/([0-9]+)$ /?page=torrents&next=$1 [L,QSA]
RewriteRule ^torrents/cat/([^/]*)$ /?page=torrents&catid=$1 [L,QSA]
RewriteRule ^torrents/cat/([^/]*)/([^/]*)$ /?page=torrents&catid=$1&next=$2 [L,QSA]
RewriteRule ^torrents/search/([^/]*)$ /?page=torrents&search=$1 [L,QSA]
RewriteRule ^torrents/search/([^/]*)/([^/]*)$ /?page=torrents&search=$1&next=$2 [L,QSA]
RewriteRule ^torrents/([^/]*)/([^/]*)$ /?page=torrents&sortedBy=$1&axis=$2 [L,QSA]
RewriteRule ^torrents/([^/]*)/([^/]*)/([^/]*)$ /?page=torrents&next=$1&sortedBy=$2&axis=$3 [L,QSA]
RewriteRule ^torrents/cat/([^/]*)/([^/]*)/([^/]*)$ /?page=torrents&catid=$1&sortedBy=$2&axis=$3 [L,QSA]
RewriteRule ^torrents/cat/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ /?page=torrents&catid=$1&next=$2&sortedBy=$3&axis=$4 [L,QSA]
RewriteRule ^torrent-detail/([^/]*)$ /?page=torrent-detail&id=$1 [L,QSA]
RewriteRule ^torrent-detail/([^/]*)/([^/]*)$ /?page=torrent-detail&id=$1&urlTitle=$2 [L,QSA]
RewriteRule ^torrent-edit/([^/]*)/([^/]*)$ /?page=torrent-edit&id=$1&urlTitle=$2 [L]
RewriteRule ^torrent-delete/([^/]*)/([^/]*)$ /?page=torrent-delete&id=$1&hash=$2 [L]
RewriteRule ^download/([^/]*)$ /?page=download&hash=$1 [L]
RewriteRule ^rss/([^/]*)$ /?page=rss&cat=$1 [L]
RewriteRule ^account/([0-9]+)$ /?page=account&next=$1 [QSA,L]
RewriteRule ^admincp/users/([0-9]+)$ /?page=admincp&act=users&next=$1 [QSA,L]
RewriteRule ^user/([^/]*)/([^/]*)$ /?page=user&act=$1&next=$2 [QSA,L]