forked from Etiene/lua.space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
29 lines (19 loc) · 671 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
27
28
29
LuaPackagePath "/var/www/sailor_framework/src/?.lua"
<FilesMatch "\.lua$">
AddHandler lua-script .lua
</FilesMatch>
DirectoryIndex index.lua
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
#CATEGORY SORTING WITH PAGINATION
RewriteRule ^([^/]+)/([0-9]+)/?$ /index.lua?r=main&c=$1&p=$2 [L]
#INSIDE A POST
RewriteRule ^([^/]+)/([^./]+)/?$ /index.lua?r=main/post&c=$1&t=$2 [L]
#ABOUT PAGE
RewriteRule ^about[/]?$ /index.lua?r=main/about [L]
#ARCHIVE PAGE
RewriteRule ^archive[/]?$ /index.lua?r=main/archive [L]
#MAIN PAGE WITH PAGINATION
RewriteRule ^([0-9]+)/?$ /index.lua?r=main&p=$1 [L]
#CATEGORY SORTING
RewriteRule ^([^./]+)/?$ /index.lua?r=main&c=$1 [L]