-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
41 lines (31 loc) · 1.17 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
33
34
35
36
37
38
39
40
41
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^.*$ - [L]
Options -Indexes
DirectoryIndex index.php
AddDefaultCharset UTF-8
ErrorDocument 401 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
ErrorDocument 500 /index.php
<files .htaccess>
order allow,deny
deny from all
</files>
<files config.php>
order allow,deny
deny from all
</files>
RewriteRule ^404/$ index.php?p=404 [L]
RewriteRule ^(vn)$ index.php?com=&lang=vn [L]
RewriteRule ^(us)$ index.php?com=&lang=us [L]
RewriteRule ^([^/]*).html$ index.php?com=$1 [QSA]
#RewriteRule ^([^/]*).html&page=([0-9]+)$ index.php?com=$1&page=$2 [L]
RewriteRule ^([^/]*)/([^/]*).html$ index.php?com=$1&alias=$2 [L]
RewriteRule ^([^/]*)/([^/]*).html(.*)$ index.php?com=$1&alias=$2&page=$3 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*).html$ index.php?com=$1&alias=$2&alias1=$3 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*).html(.*)$ index.php?com=$1&alias=$2&alias1=$3&page=$4 [L]
RewriteRule ^([^/]*).xml$ index.php?com=$1 [QSA]
RewriteRule ^([^/]*)/([^/]*).xml$ index.php?com=$1&alias=$2 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*).xml$ index.php?com=$1&alias=$2&alias1=$3 [L]