How to set up an HTML redirect to another page on load?

Is it possible to create a simple page with an HTML redirect so that when the page loads, it automatically takes the user to another URL?

I’m looking for the cleanest way to handle this using just HTML, no JavaScript if possible.

Would appreciate an example!

One of the cleanest ways to handle this is by using the tag inside the of your HTML.

It’s simple, widely supported, and doesn’t require any scripting:

html
Copy
Edit
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="refresh" content="3;url=https://example.com">
    <title>Redirecting...</title>
  </head>
  <body>
    <p>Redirecting you to the new page. If it doesn't happen automatically, <a href="https://example.com">click here</a>.</p>
  </body>
</html>

This setup delays the redirect by 3 seconds, which is helpful for UX.

Just set content=“0;url=…” for an instant redirect.