Saturday, January 30, 2010

Domain Redirection - Show Your User Right Path

Easy Guys! Think of same Web Page available under different urls, this is possible by domain redirection(domain forwarding).

We people come to use this techniques on various situations and needs. Some i would reckon as:

1)Web user have the usual habit of storing urls in browser history and bookmarks favorites, url redirection makes sure that these user are guided to correct locations if there is some domain name changes.

2)Search engines have indexed your old urls and if these urls are redirected to updated urls, then your user will not be mislead. In the next crawling cycles robots will detect new urs.

3)You may have mistyped domains in address bar of your browser, and surprise to see some times to be directed on correct domain name web page.

Do this as self exercise. Hint is Type http://yaho.com/ or http://yhoo.com/ and see!!

Good companies buy all misspelled combination domains to make sure their user may not suffer bad experience while typing.

4)I bet you also come across this seldom situation, when you typed domain.net or domain.org and you are redirected to domain.com. People do this to keep all domain ext reserve for future use.

5)If you are fed up with your current domain name and want some change, domain  redirection (domain forwarding) is here for you.

6)Moving some of web pages of your website to another website domain name.

7)You finally decided to merge two websites into one single website.

8)Some times your web pages has longer domain name which are hard to remember and looks unappealing. Also these url doesn't fit well for the microblogging sites or web forms due to character limitation. We have url shortening tools which facilitates url redirection from long url to short abbreviated urls.

Ex of such sites are:
http://tinyurl.com/
http://bit.ly/
http://tr.im/

9)Redirection techniques has also been manipulated maliciously by black hat holders. You are landed on the web page that you are looking for but on clicking on your favorite links you are redirected to web pages that contain malicious content or asking you to download malwares. These techniques are also used to extract the Pagerank advantage of reputed pages(popularly known as google 302 redirect), but it is fixed now.


You might be aware of http protocols that are used to transfer information on internet, here we have server end 3 digit status codes (usually starts with 3XX for redirect cases) that are returned and urge browser to go from one to another adresses.

Standard HTTP Status codes for redirection are:-

1)300 web page with multiple choices like in different languages.

2)301 webpage moved permanently

Client request:
GET /index.html HTTP/1.1
Host: www.yhoo.com
Server response:
HTTP/1.1 301 Moved Permanently
Location: http://www.yahoo.com/

3)302 moved temporarily

Client request:
GET /index.html HTTP/1.1
Host: www.omen.com

Server response:
HTTP/1.1 302 Found
Location: http://www.omenao.com

4)303 get request (see other)

Client request:
GET / HTTP/1.1
Host: www.example.com
Server response:
GET / HTTP/1.1
Host: www.example.com


Thats all for Redirection, will back with another stuff!!


Omenao

No comments:

Post a Comment