+

Saturday, January 14, 2012

URL rewriting and URL Redirection


7. URL rewriting and URL Redirection

a. URL Redirection 
 x. 301 Redirection (permanent redirection)

 y. 302 Redirection (temporary redirection)

b. URL Rewriting

c. Canonical Issue


What is the difference between url rewiting and url redirection.

URL Redirection-Url redirection is a client side process. Redirection send the user to a new url (site page ).
OR
Redirect implies sending an HTTP response to the client, with a new URL. Normally, when receiving the browser will update the browser address bar, and then make a new request for that new URL.

Url redirection are of two types

x. 301 Redirection (permanent redirection)- it a permanent operation. 301 code means “permanently moved” and is a way to tell that our site that was once “here” is now “there”. This is use for a static url from a dynamic url, for a aged domain to redirect to new one and for doorway pages.

y. 302 Redirection (temporary redirection)- it is a temporary operation .A  302 status code means that a page has temporarily moved to a new location.  If a page is under construction for a little time and any less time problem then we use this.

URL Rewriting - Rewriting means showing same url in other form. This is server side process. Rewritten URLs (sometimes known as short, fancy URLs, or search engine friendly - SEF) are used to provide shorter and easier reachable urls to user and search engine. The technique adds a degree of separation between the files used to generate a web page and the URL that is presented to the World.

Dynamic Url -Urls which contain id, ?, Nos and other special characters are  called the dynamic url. They are not good for web crawler to got to a page easily. Crawler confused during the crawling process when it reach at the id=no. so we create search engine and use friendly urls to get fast crawl.

Example http://www.somesites.com/forums/thread.php?threadid=12345&sort=date

Statics URL – URLs that contain the name of product or important keywords in the url are called the static urls. They are SEO, search engine and user friendly urls. They are easy to crawl to crawler.
Example  http://www.somesites.com/forums/thread.php

c. Canonical Issue

What is rel="canonical"?

If a web site page can open by more than ulrs then the content will be same means content duplicacy according to search engine then  we need to tell the search engine(Google mainly) about our preferred url of a page or canonical page. If Google agrees this designated page is the best version, it will show this preferred page in its index. It is a request not a command.

To tell Google which page you want listed as the canonical page, we add the following bit of code into the head section of the similar (non-canonical) pages:

<link rel="canonical" href="http://www.example.com/"/>

Example of canonical pages are –
Example.com/index.html

4 comments:

  1. Hello,

    Nice Post..
    Thanks for sharing and keep posting such post here in future too.
    seo directory submission
    Thanks,

    ReplyDelete
  2. very very nice and useful information for seo and internet marketing.thnks for searing such a nice information....... seo company Delhi seo services Delhi.

    ReplyDelete
  3. Thank you for posting the great content…I was looking for something like this…I found it quiet interesting, hopefully
    you will keep posting such blogs….Keep sharing
    International Courier Services in Qatar, Cargo Services to India

    ReplyDelete
  4. i readed this type of blog its really helpful. Watch and Download Tik Tok Videos Online at tiktok viewer

    ReplyDelete