-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
19 lines (17 loc) · 991 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
# URL example.com/ComicBookName/page-1
RewriteRule ^([A-Za-z0-9-_]+)/page-([0-9]+)$ pbp.php?comic=$1&page=$2 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/page-([0-9]+)/$ pbp.php?comic=$1&page=$2 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/page-([0-9]+)/([A-Za-z]+)$ pbp.php?comic=$1&page=$2&lang=$3 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/page-([0-9]+)/([A-Za-z]+)/$ pbp.php?comic=$1&page=$2&lang=$3 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/page-([0-9]+).html$ pbp.php?comic=$1&page=$2 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/$ pbp.php?comic=$1&page=0 [NC]
RewriteRule ^([A-Za-z0-9-_]+)$ pbp.php?comic=$1&page=0 [NC]
# URL example.com/ComicBookName/thumb
RewriteRule ^([A-Za-z0-9-_]+)/thumbs$ thumbs.php?comic=$1&page=0 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/thumbs/$ thumbs.php?comic=$1&page=0 [NC]
RewriteRule ^([A-Za-z0-9-_]+)/thumbs/([0-9]+)$ thumbs.php?comic=$1&page=$2 [NC]