HostOnNet Blog

Redirect Web Page to Another

Here are some of the methods used to redirect a web page or web site to another.

Using HTML

<!DOCTYPE html>
<html>
<head>
    <title>Redirecting</title>
    <meta http-equiv="refresh" content="2;url=http://newurl.here/" />
</head>
<body>
    <p>Page mved. If not redirected, <a href="http://newurl.here/">Click here</a>.</p>
</body>
</html>

Using .htacess

This will redirect entire web site to new URL

Redirect 301 / https://new-url.here/

To redirect single page

Redirect /mypage.html https://new-url.here/folder/

Posted in General