-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
41 lines (34 loc) · 1.6 KB
/
.htaccess
File metadata and controls
41 lines (34 loc) · 1.6 KB
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
## Add SSI.
# DH is automatically doing this for shtml. Add for html
#AddType text/html .shtml
#AddHandler server-parsed .shtml
AddHandler server-parsed .html
#Options FollowSymLinks Includes
Options -Indexes
#
## Setup rewriting.
RewriteEngine On
RewriteBase /
# COMMENT OUT ON LOCAL DEV ONLY
# This checks to make sure the connection is not already HTTPS
#RewriteCond %{HTTPS} !=on
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# LEAVE COMMENTED OUT, HANDLED ELSEWHERE
#RewriteCond %{HTTP_HOST} !^antisocialmusic\.com
#RewriteRule (.*) https://antisocialmusic.org/$1 [R=301,L]
# REFACTORED TO HAVE INCLUDE FILES IN OWN SUBFOLDER; BLOCK DIRECT ACCESS BECAUSE I'M A CONTROLLING JERKFACE
RewriteRule ^includes/ - [F,L,NS]
# Automatically redirect /performances/*.html requests (except for default and performances) to *.shtml
RewriteCond %{REQUEST_URI} !^/performances/(default|performances).html$
RewriteRule ^(performances)/([^\./]+)\.html$ /$1/$2.shtml [R=301,END,NC]
# These are old redirects handled in files via window.location scripting. Putting them here.
Redirect 301 /performances/performances.html /Performances.shtml
Redirect 301 /performances/performances.shtml /Performances.shtml
Redirect 301 /performances/default.html /Performances.shtml
Redirect 301 /music.html /Music.html
Redirect 301 /performances.html /Performances.html
Redirect 301 /members.html /Members.html
Redirect 301 /history.html /History.html
Redirect 301 /press.html /Press.html
Redirect 301 /store.html /Store.html
Redirect 301 /pressphotos.html /PressPhotos.html