Skip to content

Commit 9b614ec

Browse files
committed
go subdomain root redirect to core
1 parent c60b217 commit 9b614ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cloudformation/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,15 @@ Resources:
901901
async function handler(event) {
902902
const request = event.request;
903903
const path = request.uri.replace(/^\/+/, '');
904+
if (path === "") {
905+
return {
906+
statusCode: 301,
907+
statusDescription: 'Found',
908+
headers: {
909+
'location': { value: "https://core.acm.illinois.edu/linkry" }
910+
}
911+
}
912+
}
904913
let redirectUrl = "https://acm.illinois.edu/404";
905914
try {
906915
const value = await kvs.get(path);

0 commit comments

Comments
 (0)