-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
878b4d9
commit 783ab52
Showing
115 changed files
with
139 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
RewriteEngine on | ||
RewriteBase / | ||
|
||
# Redirect www to non www | ||
RewriteCond %{HTTP_HOST} ^www.adamgraham.io | ||
RewriteRule (.*) http://adamgraham.io/$1 [R=301,L] | ||
|
||
# Redirect http to https | ||
RewriteCond %{HTTPS} off | ||
RewriteCond %{HTTP_HOST} ^adamgraham.io | ||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] | ||
#Header always set Content-Security-Policy "upgrade-insecure-requests;" | ||
|
||
# Remove trailing slashes | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)/$ /$1 [L,R=301] | ||
|
||
# Redirect all file requests to index.html (SPA) | ||
# RewriteCond %{REQUEST_FILENAME} !-f | ||
# RewriteCond %{REQUEST_FILENAME} !-d | ||
# RewriteRule (.*) index.html [QSA,L] | ||
|
||
# Redirect directories | ||
RewriteRule ^game/(.*)$ /games [R=301,L] | ||
RewriteRule ^website/(.*)$ /websites [R=301,L] | ||
RewriteRule ^presentation/(.*)$ /presentations [R=301,L] | ||
|
||
# Redirect home on 404 | ||
ErrorDocument 404 / |
2 changes: 2 additions & 0 deletions
2
00b1e3a505bf683606152336fa813a9ebca105c7-1117904cb79270f96cd4.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
00b1e3a505bf683606152336fa813a9ebca105c7-1117904cb79270f96cd4.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
00b1e3a505bf683606152336fa813a9ebca105c7-32f7b2b7fa1025a10a72.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
00b1e3a505bf683606152336fa813a9ebca105c7-32f7b2b7fa1025a10a72.js.LICENSE.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
00b1e3a505bf683606152336fa813a9ebca105c7-32f7b2b7fa1025a10a72.js.map
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app-3d035304f8fb7bbb8eb5.js.map → app-9eaf076d8ce4258950e5.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.