HostOnNet Blog

Redirect Web Page to Another

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.