-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
26 lines (22 loc) · 935 Bytes
/
.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
ErrorDocument 402 /error.html
ErrorDocument 403 /error.html
ErrorDocument 404 /error.html
ErrorDocument 500 /error.html
DirectoryIndex index.php
RewriteEngine On
# Bài viết và chuyên mục
RewriteRule ^search$ template/search.php [L]
RewriteRule ^search/(.*)$ template/search.php [L]
RewriteRule ^category$ template/category.php [L]
RewriteRule ^category/(.*)$ template/category.php?id=$1 [L]
RewriteRule ^blog/([0-9]+)-(.*)$ template/category.php?id=$1 [L]
RewriteRule ^view/([0-9]+)-(.*)$ template/view.php?id=$1 [L]
RewriteRule ^view/([0-9]+)/page-([0-9]+)$ template/view.php?id=$1&page=$2 [L]
RewriteRule ^video-embed$ template/video-embed.php [L]
# Quản lý blog
RewriteRule ^manager$ template/manager.php [L]
# Thông tin khác
RewriteRule ^login$ template/login.php [L]
RewriteRule ^sitemap.xml$ template/sitemap.php [L]
RewriteRule ^robots.txt$ template/robots.txt [L]
RewriteRule ^error.html$ template/error.php [L]