Ask coding questions

← Back to all posts
How do I redirect a replpage to another page
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
abdelhamidAbual
Comments
hotnewtop
AloegelhiPlaysR

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.

pingkendi

how to remove .html when click the link

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

pingkendi

@BuffoonSpoon its work, thank youu sm

InvisibleOne

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

abdelhamidAbual

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

UnluckyFroggy

Put this in you html file: