Skip to content Skip to sidebar Skip to footer

How to Overcome 404 Broken Links in Search Engines

404 error funny banner

SEO very important for any website. Search engine optimization is very important to get a website in the top 10 major sequences. But the incident can be meaningless Url that cannot be accessed or an error has occurred in the form of 404.

Google has its own algorithm for websites that are managed by users who have registered with Google Webmaster tools. Like content, headline titles, internal / external links, all of which can be counted by both Googlebot and Spider scans.

404 url which needs to be fixed due to page errors and the googlebot can easily check this by crawling each page and differentiating the content to the page status.

So that doesn’t happen 404 error not found caught by googlebot and made it Crawl errors can use it well 301 Moved permanently. This is just an effort website administrators can make after modifying the link, while it has been indexed and is about to be removed or moved.

There is code for several programming languages ​​that support page access 301, see below.!

PHP

JSP [Java]

<%response.setStatus(301);response.setHeader("Location","http://URLbaru.tld");response.setHeader("Connection","close");%>

CGI Perl

$pindah = new CGI;print $pindah->redirect("http://URLbaru.tld");

ASP

<%@Language=VBScript %><%Response.Status="301 Moved Permanently"Response.AddHeader"Location","http://URLbaru.tld"%>

ASP .NET

Ruby on rails

def old_action headers["Status"] = "301 Moved Permanently"redirect_to "http://URLbaru.tld"end

Select one of the codes above that is used in the language of each site and change it to the text new url.tld in a new URL address, this is so that search engines can move content easily.

After using the code above, the search engine will immediately refresh the page for approximately 24 hours and be permanently deleted from the website for 2 days SERP (Search engine results page).

At the moment there is no way to do it 301 Document moved permanently based on website builder HTML / Javascript since the redirect function can only change the content and cannot remove links from search engines.

Hopefully useful and good luck