<?Php
header("HTTP/1.1 301 Moved Permanently");
header ("Location: newpage.php");
exit;
?>
The above code is written in PHP. The first line says about the error type and give the message saying the page is no longer exit. The second line will redirect the visitor auotmatically to a different page marked for this. If you don't want automatic redirection then you can show a message and ask the visitor to click a link to move away.
echo "This topic is moved or deleted, return to <a href=https://www.plus2net.com>Home page</a>";The last line may not be required. Just a second line of protection if you have any code below it to.
Be the first to post comment on this article :
Google Analytics 4
SEO glossary
Webmaster tools to Diagnose problems and crawl issues
HTTP error code and messages
Search engine friendly page design
Quality Site for higher ranking in Search engines
Checklist for a new website for future ranking
Fast loading Page
Black Hat Search Engine Optimization - SEO
rel=nofollow: Preventing comment spam
google alert
robots.txt file of a site
google trends for comparing & monitoring traffic
Searching google within a site for number of pages
Monitoring Rank
Long tail Keywords