-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
25 lines (18 loc) · 1.41 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
RewriteEngine On
RewriteRule ^([\w]+)/([\w\d_-]+)$ /$1/$2/?%{QUERY_STRING} [R=301,L]
RewriteRule ^([\w]+)/([\w\d_-]+)/$ /index.php?type=$1&child=$2&%{QUERY_STRING} [L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)$ /$1/$2/$3/?%{QUERY_STRING} [R=301,L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/$ /index.php?type=$1&child=$2¶m1=$3&%{QUERY_STRING} [L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)$ /$1/$2/$3/$4/?%{QUERY_STRING} [R=301,L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/$ /index.php?type=$1&child=$2¶m1=$3¶m2=$4&%{QUERY_STRING} [L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)$ /$1/$2/$3/$4/$5/?%{QUERY_STRING} [R=301,L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/$ /index.php?type=$1&child=$2¶m1=$3¶m2=$4¶m3=$5&%{QUERY_STRING} [L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)$ /$1/$2/$3/$4/$5/$6/?%{QUERY_STRING} [R=301,L]
RewriteRule ^([\w]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/([\w\d_-]+)/$ /index.php?type=$1&child=$2¶m1=$3¶m2=$4¶m3=$5¶m4=$6&%{QUERY_STRING} [L]
RewriteRule ^([\w]+)$ /$1/?%{QUERY_STRING} [R=301,L]
RewriteRule ^([\w]+)/$ /index.php?type=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]