You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sweep: Enhance Repo to support multiple static sites. Implement a proxy mechanism to redirect the user for specific domains Or if not possible find a way to use one mapping domain where several paths redirect to a respective site #11
• Create a new index.html file for the first static site. This file should include the necessary HTML, CSS, and JavaScript for the site.
site2/index.html
• Create a new index.html file for the second static site. This file should include the necessary HTML, CSS, and JavaScript for the site.
redirect.js
• Create a new JavaScript file for the redirect mechanism. This script should check the URL path and redirect the user to the appropriate site. For example, if the URL path is "/site1", the script should redirect the user to "site1/index.html".
index.html
• Include the redirect script in the main index.html file. Add a script tag to the head of the document that references the redirect.js file.