How to make a repl page redirect to a non repl page?

Question:


Hi, im trying to make my replit page redirect to a different website than replit.
Is this possible?

Also i do have a domain that i can use for the site if needed

Welcome to Ask! This is easy to do in several coding languages. Since you chose HTML/CSS/JS as your category, I will provide information on how to do this in static HTML.

Simply add this to your webpage:

<meta http-equiv="Refresh" content="1; url='https://replit.com" />

Here, 1 is the time, in seconds, until the page redirects. https://replit.com is the page being redirected to. You can change this to whatever you want.

For more information, read How to Redirect a Web Page in HTML

5 Likes

Can you elaborate on your question? All web Repls come with the domain [repl name].[username].repl.co by default (unless you’re using deployments, in which case I believe you have more options). You can use your own domain if you like instead.

2 Likes

Thank you!
I’ve got another question.
I have an image hosted on my repl page and if you go to the source of that image in my case its https://bio.hit5.repl.co/workforeat.png (its an inside joke with my friend)
is there any possible way you could make it redirect from that link to another website?

Probably not (unless you have a backend). What you could do is make a page containing nothing but that image and then add the code I provided to it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.