If your working on a Svelte+Sapper application and you run in asituation where you need to redirect to different homepage, with URL /home1/1
,/home2/1
when the user visited the root domain /, instead of showing the default home page opened src/routes/index.svelte, comment out or removed everything in that file, and add this code:
|
|
or redirect your user to login pages if not login user..
|
|