Skip to content
Sign upLog in
← Back to Community

How do I redirect a replpage to another page

Profile icon
[deleted]

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.

Answered by AloeBest [earned 5 cycles]
View Answer
Voters
Profile icon
Itayetzi-Zadahi
Profile icon
CANDACEAVILES
Profile icon
MariusAlecu
Comments
hotnewtop
Profile icon
AloeBest
<meta http-equiv="refresh" content="time; URL=LINK" />

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.

Profile icon
InvisibleOne

location.href='https://yourwebsitename.com'

Profile icon
[deleted]

@InvisibleOne
I already have my question answered, thank you.

Profile icon
UnluckyFroggy

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>