Ask coding questions

← Back to all posts
How do I redirect a replpage to another page
abdelhamidAbual (1)

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 AloegelhiPlaysR (109) [earned 5 cycles]
View Answer
Comments
hotnewtop
AloegelhiPlaysR (109)
<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.

InvisibleOne (2674)

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

abdelhamidAbual (1)

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

UnluckyFroggy (917)

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>