From 7c1174da3c464448577dec346c3b69549a99a97c Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 20:04:45 +0000 Subject: [PATCH 1/9] --- site1/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 site1/index.html diff --git a/site1/index.html b/site1/index.html new file mode 100644 index 0000000..d381a95 --- /dev/null +++ b/site1/index.html @@ -0,0 +1,15 @@ + + +
+ + +This is the first static site hosted in this repository.
+ + + + From ace6cb8b3d54cded1a62daf23e34d09169d2d556 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 20:05:37 +0000 Subject: [PATCH 2/9] --- site2/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 site2/index.html diff --git a/site2/index.html b/site2/index.html new file mode 100644 index 0000000..6d0aeba --- /dev/null +++ b/site2/index.html @@ -0,0 +1,15 @@ + + + + + +This is the second static site hosted in this repository.
+ + + + From 825c15e12da13caa8ed4c5335d646dad0d4b1734 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 20:06:24 +0000 Subject: [PATCH 3/9] --- redirect.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 redirect.js diff --git a/redirect.js b/redirect.js new file mode 100644 index 0000000..2bebdbf --- /dev/null +++ b/redirect.js @@ -0,0 +1,13 @@ +// Get the current URL path +var path = window.location.pathname; + +// Redirect the user based on the URL path +if (path === "/site1") { + window.location.href = "site1/index.html"; +} else if (path === "/site2") { + window.location.href = "site2/index.html"; +} else { + // If the path does not match any of the above, redirect the user to the main site + window.location.href = "index.html"; +} + From 7e089c06d05f48a7171d55fa8e4511f74647ac4d Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 20:06:50 +0000 Subject: [PATCH 4/9] Included redirect script in main index.html file --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 8ff2084..54eed95 100644 --- a/index.html +++ b/index.html @@ -122,9 +122,10 @@This is the first static site hosted in this repository.
- +