|
|
Webpage Redirect
If you are using a webpage redirect, you will risk that the search engines do not index any of your content because of the webpage redirect. A good test for webpage redirect problems is to check the Google Cache for the page. If it is a Google 404 Error, you have problems.
301 redirect
If you need your old webpage to redirect to your new webpage or you have to remove old content a 301 redirect is always recommended. Avoid using other redirects techniques because they are not search engine friendly!
If you just change a file name or delete a page, you my lose search engine rankings that were associated with the old page. By using a 301 redirect, you tell search engines and humans where to find the new page.
HTML redirect
Html redirect is the technique of sending surfers to a different page by giving the browser a page which contains a code to automatically load a different page. This can be done with META tag or JavaScript redirects.
We requirement that you avoid using html redirect techniques: For more information, read the section about Doorway Pages. 301 redirect is a much better way to ensure that visitors can still find your webpages after you have made changes, because there are no spamming penalties associated with it.
Webpage Redirects using 301 redirect
Here are a couple of 301 webpage redirect solutions:
- Windows Active Server Pages
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently" Response.AddHeader "Location", "www.newsite.com/index.html"
>
- Windows ASP .NET
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location"," www.newsite.com/index.html");
}
</script>
- 301 redirect via the IIS (Internet Information Server)
- Open domain.com site in Internet Services manager.
- Go to the properties of the domain.com site
- Go to the Home Directory tab:
- Change the option button "When connecting to this resource the content should come from" to "A redirection to a URL"
- Enter your full URL http://www.domain.com
- Check the checkbox that says "A permanent redirection for this resource"
- 301 redirect via Apache
A 301 redirect is implemented in the .htaccess file. Scroll down and create a new line that follows this example:
redirect 301 /old/old.htm http://www.domain.com/new.htm
- 301 redirect in PHP
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.domain.com/new.htm");
exit();
<< Webpage Load Time
>> Hidden Text
You have permission to reprint this article electronically or in print, free of charge, provided that it includes a link to www.skyart.org.
Aleksika.com is an online search engine marketing resource that turns you into a professional search engine optimization and
advertising expert.
|
|
|
|
|