{"id":327,"date":"2010-08-03T02:45:08","date_gmt":"2010-08-03T09:45:08","guid":{"rendered":"http:\/\/rajiniravi.com\/ravi\/wp\/?p=327"},"modified":"2010-08-03T02:45:08","modified_gmt":"2010-08-03T09:45:08","slug":"canonicalization-of-urls","status":"publish","type":"post","link":"https:\/\/ravi.rajiniravi.com\/blog\/2010\/08\/canonicalization-of-urls\/","title":{"rendered":"Canonicalization of URLs"},"content":{"rendered":"<p>A few months back I came across <a href=\"http:\/\/www.mattcutts.com\/blog\/about-me\/\" target=\"_blank\">Matt Cuttss&#8217;<\/a> <a href=\"http:\/\/www.youtube.com\/watch?v=Cm9onOGTgeM\" target=\"_blank\">video<\/a>(embedded below) on <a href=\"http:\/\/www.google.com\/support\/webmasters\/bin\/answer.py?answer=139066\" target=\"_blank\">canonicalization of URLs<\/a>. Till then, I didn&#8217;t know that technically, www.example.com, example.com, www.example.com\/, example.com\/ are different and you could serve different content for these URL&#8217;s.<br \/>\n<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"640\" height=\"385\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowScriptAccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/Cm9onOGTgeM&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1\" \/><param name=\"allowfullscreen\" value=\"true\" \/><\/object><\/p>\n<p>A good to know thing for me and I left it at that.<\/p>\n<p>Completely unrelated, a few weeks back, we were launching a site. The registration page was very critical to the entire site and for some reason, when I submitted the registration page, it sort of went into a limbo and didn&#8217;t load the registration thank you page. The IT folks in office couldn&#8217;t resolve the issue and said that it was a problem with my computer. We again left it at that and went on to launch the site.<\/p>\n<p>Yesterday, some one reported the same problem and we went into serious investigation on the issue. It was then that I realized that the registration confirmation page went into a loop if I accessed the site as http:\/\/xxxxxxxxx.in vs the usual http:\/\/www.xxxxxxxxx.in . The entire site was one huge flash file and was loading information from some static text files and the text file path was referenced as http:\/\/www.xxxxxxxxx.in\/sometext.txt .It naturally couldn&#8217;t be returned and the registration page hung!<\/p>\n<p>We finally solved it with a <a href=\"http:\/\/www.highposition.net\/301-redirect-tutorial-iis\/\" target=\"_blank\">301 redirect<\/a> on IIS that was serving the website. Problem solved!<\/p>\n<p>You can read about other ways to do a 301 redirect <a href=\"http:\/\/www.webconfs.com\/how-to-redirect-a-webpage.php\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few months back I came across Matt Cuttss&#8217; video(embedded below) on canonicalization of URLs. Till then, I didn&#8217;t know that technically, www.example.com, example.com, www.example.com\/, example.com\/ are different and you could serve different content for these URL&#8217;s. A good to know thing for me and I left it at that. Completely unrelated, a few weeks [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3979,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"book_review_cover_url":"","book_review_title":"","book_review_series":"","book_review_author":"","book_review_genre":"","book_review_isbn":"","book_review_publisher":"","book_review_release_date":"","book_review_format":"","book_review_pages":"","book_review_source":"","book_review_rating":"","book_review_summary":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-problem-soultion"],"jetpack_featured_media_url":"https:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2021\/01\/photo-1547139559-c89c59d117611.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":0,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/media\/3979"}],"wp:attachment":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}