Skip to content

Enhance Repo to support multiple static sites and implement client-side redirect mechanism #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Aug 18, 2023

Description

This PR enhances the repository to support multiple static sites and implements a client-side redirect mechanism. It addresses the issue of hosting multiple sites within the same repository and redirects users based on the URL path.

Summary of Changes

  • Created separate directories for each static site: site1 and site2.
  • Added index.html files for each static site with the necessary HTML, CSS, and JavaScript.
  • Implemented a client-side redirect mechanism using a new JavaScript file, redirect.js.
  • Updated the main index.html file to include the redirect script.
  • The redirect script checks the URL path and redirects the user to the appropriate site.

Please review and merge this PR to enable hosting multiple static sites within the same repository and provide a client-side redirect mechanism.

Fixes #11.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/enhance-multiple-sites

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.


This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
0 participants