How do I redirect a replpage to another page
I want to redirect https://homepage-practice.abdelhamidabual.repl.co to https://homepage-practice.abdelhamidabual.repl.co/index
This question has been answered, do not post any more answers here, thank you.
location.href='https://yourwebsitename.com'
@InvisibleOne I already have my question answered, thank you.
how to remove .html when click the link
@pingkendi Ok... so, you make each individual webpage on your site a folder on replit (other than your current index.html) then inside of each of these folders you put another file called index.html (completely empty) then put the code for that website in that folder.. You are done.
If this confused you then there is this:
https://replit.com/talk/ask/how-can-i-remove-the-html-from-my-page/48757
Try researching before asking
@BuffoonSpoon its work, thank youu sm
Put this in you html file:
<script> setTimeout(function(){ window.location.href="http://www.google.com"; // The URL that will be redirected too. }, 3000); // The bigger the number the longer the delay. </script>
Replace 'time' with the amount of SECONDS you want until it does it, Replace 'LINK' (leave url= there) with the url of what you're redirecting to.