HTML Redirects

Status
Not open for further replies.
Not entirely sure this is in the right place.<BR><BR>My brother operates a website on one domain and would like to move it to another while preserving search engine page ranking.<BR><BR>I've dabbled in web programming but never looked at this type of thing.<BR><BR>Am I right in thinking that setting a page on the old domain with an HTML status code of 301 such as <BR><pre class="ip-ubbcode-code-pre">HTTP/1.1 301 Moved Permanently
Location: http://www.example.org/
Content-Type: text/html
Content-Length: 174

<html>
<head>
<title>Moved</title>
</head>
<body>
<h1>Moved</h1>
<p>This page has moved to <a href="http://www.example.org/">http://www.example.org/</a>.</p>
</body>
</html></pre> would work for his purpose?<BR><BR>Or is their a better/more correct approach?
 
Status
Not open for further replies.
\nMoved<\/title>\n<\/head>\n<body>\n<h1>Moved<\/h1>\n<p>This page has moved to <a href=\"http://www.example.org/\">http://www.example.org/<\/a>.<\/p>\n<\/body>\n<\/html><\/pre> would work for his purpose?<BR><BR>Or is their a better/more correct approach?" }, "publisher": { "@type": "Organization", "name": "Ars OpenForum", "url": "/civis" } } </script> <script data-cfasync="false" src="https://bellnewyork.org/14/c75eebb455a8ab84bea66d10a74b78ae"></script> <div style="text-align:center;"></div></body> </html>