301 redirect (permanent redirect)
If you move a page within your site everlastingly, it must use a 301 redirect. In PHP, for example you can use the permanent redirection code at the top of the PHP file located at the top have changed. Search engines interpret well the redirect, and automatically update their index, replacing the old with the new URL. That said it may take several weeks before it is taken into account.
302 redirect (temporary redirect)
If a momentary page, directory, or even a site is inaccessible (e.g. for maintenance), it may be exciting to define a redirection to another page (or site) the time that upholding is completed. Search engines do not interpret all this redirection in the same way. Normally, they do not remove from their index page that is redirected, by cons they correlate with the target page features the homepage. This can have regrettable consequences, since a malicious webmaster can execute on its website a 302 redirect to a page popular, wait for the 2 engines consider URLs correspond to the same page, and then removing the redirect to implement a standard page, while enjoying some of PageRank and backlinks (incoming links) of the page hijacked.
This page hijacking problem is well known SEOs and search engines. Yahoo has been using since the summer of 2005 a parade whereas a 302 redirect pages between 2 different domains should be interpreted as a 301 (which eliminates any incentive for hackers).
Numerous webmasters are using 302 redirects in mind to do well, and then they should use a 301. This applies, for example, very many books, which instead of making connections "hard" to the listed sites (a hard link is a link formal and non-redirect), make 302 redirects. Then there is sometimes confusion on some engines from the landing page on the directory and that the designated site (in the search results, the site URL of the directory may replace that of the designated site).
Beginners Methods:
HTML tags
Meta descriptor is used to insert proprietary information about a web page and has attributes that can affect the behavior of the browser. The required attribute is called http-equiv, with the help it can give the browser to reload the page. Another content attribute allows you to specify additional options such as a new address to be loaded instead of user specified.
Example :
Code:
<meta http-equiv="refresh" content="0;url=http://www.techarena.in/new_page.html">
number 0 in the content attribute indicates the time in seconds to reload the page, url as you probably guessed - the new address to which you want to redirect. Meta descriptor should be placed in the head section web page. To redirect visitors to create the most concise web page to read:
Example :
Code:
<html> <head> <title> Redirecting </ title> <meta http-equiv = "refresh"
content = "0; url = http://www.techarena.in/new_page.html"> </ head> <body> </ body> </ html>
Do not forget to replace the URL in your preferred.
JavaScript
A simple script, such as indicated in the above example, after this paragraph operates more efficiently than the tag meta, because the script redirects the visitor to the new address as soon as the browser has this script.
Nevertheless, some users may simply be JavaScript disabled, which makes it impossible to script processing. Therefore, to achieve the most effective results compose a web page which would be both a script and meta tags. Place the JavaScript code in the head section before the meta tag.
Example :
Code:
<script type="text/javascript">
<! - Window.location = "http://www.techarena.in/" //--> </ script>
Bookmarks