| Topic R |
| Redirect |
| Redirect is the process of diverting user from one URL or domain to other URL or domain with some intention. |
| Purpose of redirect |
| The main purpose of redirect is to take the advantages of famous URL or domain names. |
| Few important purposes are illustrated below. |
| Change of domain name |
| If the web owner wants to open a new domain for already existing site, in that case he will not pay much attention in popularizing the newly created domain but redirect the user from old domain to new domain. It could be done through the redirection of URL or redirection of . |
| Logging out going links |
| Most of the time the web masters does not get the idea of how many visitors are coming to newly created page because it is redirected to the older page. But the technique adapted now a days gives us the scenario of fresh visitors who visit first the new site and then are redirected towards the old page or site. |
| To hold the page rank |
| Suppose one particular page of the web site got good page rank, the site owner has created few more pages but he is fail to get good for those pages. Now instead of striving hard for getting the page rank the site owner will redirect newly created pages with the page having good page rank. As this page got good page rank, all the benefits of high page rank will be utilized by those low rank pages. |
| Control search engine |
| The technique of redirect many a times deceives the . By involving 302 HTTP status code of “moved temporarily” the search engine could be manipulated. Like one page is displayed to the search engine and other pages are displayed to target the audience. Apart from this the page with good page rank is redirected with the pages of low rank. |
| 301 redirect |
| 301 redirect file gives the access to make use of high page rank which is given to older page for the newly created page. |
| The following code is used for the installation of 301 redirect file. |
| Redirect 301/old/old.htm http://www.you.com/new.htm |
| Art of redirect |
| There is various technique to implement redirect. |
| 1. htaccess for redirection |
Rewrite Engine on
RewriteCond %{ HTTP_HOST}^.*oldwebsite\.com$[NC]
Rewrite rule ^(.*)$ http://www.preferredwebsite.net/$1 [ R=301,L]
This method usually does not require Admin permission. |
| 2. Java script redirect |
| In redirect different pages are displayed in the current browser window. |
| 3. Frame redirect |
< rows =”100%>
<frame src=http://www.example.com/>
</frameset>
<>
Please follow <a href=http://www.example.com/>link</a>!
</noframes> |
| Redirect loops |
| One redirect leads to other redirect. |
for example
Http://www.wikipedia.com/wiki/URL _redirection
The first redirected to http://www.wikipedia.org/wiki/URL_redirection
Again it is redirected to correct URL:http://en.wikipedia.org/wiki/URL_ redirection |
| Apart from these types there are other types also to redirect. |
| |
| |