Skip to content
← Back to Community
How do I redirect a replpage to another page
Profile icon
abdelhamidAbual

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 [earned 5 cycles]
View Answer
Voters
Profile icon
Itayetzi-Zadahi
Profile icon
CANDACEAVILES
Profile icon
MariusAlecu
Profile icon
abdelhamidAbual
Comments
hotnewtop
Profile icon
AloegelhiPlaysR
<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
abdelhamidAbual

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

Profile icon
pingkendi

how to remove .html when click the link

Profile icon
BuffoonSpoon

@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

Profile icon
pingkendi

@BuffoonSpoon its work, thank youu sm

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>