I have built a webpage, splashcreen.html, that when someone loads index.php will automatically go to. But I wish to also have a button, return to index.php, that allows users to go back to the homepage. But if the person closes the browser, this entire process restarts.
So it goes:
- Open browser,
index.php - Redirect to
splashcreen.html - user clicks button, return to
index.php - navigate without redirect
- User closes browser
- reopen and start this whole process again.
Is this possible?
Thanks!
You could have your
index.phpas the splash screen. Then the user clicks the button, redirect tohome.phpwhich is the “real” homepage.Then instead of Home links pointing to the root (which implies
index.php, therefore splash screen), have them point tohome.phpinstead.So:
yoursite.comand meets your splash screenhome.phpyoursite.com, well.. splash screen again!If later on you get tired of the splash screen and plan not to use it anymore, you can use a simple .htaccess rule to redirect index.php requests to home.php