forked from ScoutProject/scout-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
38 lines (31 loc) · 1.11 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
# Error Documents
ErrorDocument 401 /errors/401.php
ErrorDocument 404 /errors/404.php
ErrorDocument 403 /errors/403.php
ErrorDocument 500 /errors/500.php
Options -Indexes
# Rewrites
RewriteEngine On
# Home page
RewriteRule ^$ /pages/dashboard.php
# First level pages
RewriteRule ^([A-Za-z0-9-]+)/$ /pages/$1.php [NC]
#Award Scheme pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^award-scheme(.*)\?*$ /pages/award-scheme.php/$1 [QSA]
#Profile pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^profile(.*)\?*$ /pages/profile.php/$1 [QSA]
#Progress Tracker pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^progress-tracker(.*)\?*$ /pages/progress-tracker.php/$1 [QSA]
#Group pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^groups(.*)\?*$ /pages/groups.php/$1 [QSA]
# Pesky trailing slashes
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]