-
Notifications
You must be signed in to change notification settings - Fork 18
/
.htaccess
40 lines (26 loc) · 999 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
30
31
32
33
34
35
36
37
38
39
40
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]
#Jobs
RewriteRule ^jobs/add[/]?$ /index.lua?r=jobs/add [L]
RewriteRule ^jobs/waiting[/]?$ /index.lua?r=jobs/waiting [L]
RewriteRule ^jobs/admin/([^/]*)[/]?$ /index.lua?r=jobs/admin&pw=$1 [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]
#JOBS PAGE
RewriteRule ^jobs/([0-9]+)/[^/]*[/]?$ /index.lua?r=jobs/view&id=$1 [L]
RewriteRule ^jobs[/]?$ /index.lua?r=jobs/index [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]