-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
18 lines (14 loc) · 863 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^(127\.0|192\.168|10\.0)
RewriteCond %{HTTP_HOST} !^falconia\.org$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://falconia.org/novel/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? - [S=1]
RewriteRule .? - [L]
RewriteRule ^([^/]+)/([^/]+)/v/(0,[0-9]+|[1-9][0-9]*).html$ index.php?novelid=$1&volumeid=$2&pageid=$3&textmode=v [QSA,L]
RewriteRule ^([^/]+)/([^/]+)/v/$ index.php?novelid=$1&volumeid=$2&textmode=v [QSA,L]
RewriteRule ^([^/]+)/([^/]+)/([1-9][0-9]*)\.html$ index.php?novelid=$1&volumeid=$2&chapterid=$3 [QSA,L]
RewriteRule ^([^/]+)/([^/]+)/$ index.php?novelid=$1&volumeid=$2 [QSA,L]
RewriteRule ^([^/]+)/$ index.php?novelid=$1 [QSA,L]