-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
35 lines (24 loc) · 1.21 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
Options -Multiviews
ErrorDocument 400 /errors/400.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
AddDefaultCharset utf-8
RewriteEngine On
RewriteRule ^about$ about.php [L]
RewriteRule ^help$ help.php [L]
RewriteRule ^index$ index.php [L]
RewriteRule ^upload$ upload.php [L]
RewriteRule ^candidates$ /candidates/ [R=301] # add a trailing slash
RewriteRule ^candidates/$ candidate.php [L] # the list of candidates
RewriteRule ^candidates/(\d+)$ candidate.php?id=$1 [L] # a specific candidate
RewriteRule ^reviews$ /reviews/ [R=301] # add a trailing slash
RewriteRule ^reviews/$ review.php [L] # the list of reviews
RewriteRule ^reviews/([0-9a-fA-F]{32})$ review.php?id=$1 [L] # a specific review
RewriteRule ^login$ login.php?mode=login [L,QSA]
RewriteRule ^logout$ login.php?mode=logout [L,QSA]
RewriteRule ^register$ register.php?mode=init [L,QSA]
RewriteRule ^register/(.+)$ register.php?mode=verify&id=$1 [L,QSA]
RewriteRule ^create-account$ create-account.php [L]
RewriteRule ^sitemap$ sitemap.php [L]
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript