-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
34 lines (26 loc) · 844 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
AddType application/x-httpd-php .php .htm .html
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Clean up urls
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Pathways
#RewriteRule ^pathway/([0-9]+)/modify$ /modify-path.php?id=$1 [NC,L]
# End clean up urls
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Re-write no extension to .html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
DirectoryIndex index.html
ErrorDocument 404 /ReadMe.md
<Files .htaccess>
order allow,deny
deny from all
</Files>
</IfModule>