Website Development Prices

Search Blog

Wednesday, July 24, 2019

How to set up a basic HTML page to redirect to another page

Place this code in the head section.

You can use both meta, and JavaScript code:

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=http://marijarikic.com/en/index.html">
        <script type="text/javascript">
            window.location.href = "http://marijarikic.com/en/index.html"
        </script>
        <title>Page Redirection</title>
    </head>

    <body>

    </body>
</html>

Instead of marijarikic.com/en/index.html place your link.