Canonicalization, Category_Forum Administration, Category_SEO & Marketing, Category_Tutorial, Category_Webmaster, FTP, htaccess, Joshua Farrell, Pange Rank, PR -

Link Canonicalization - Explained

If you are someone that has spent any amount of time on the Internet, then you might have noticed that some websites always contain "www" in their URL and then there are some that are fading away from that trend, and do not contain the "www" in the URL. However, how do you do this? Is it simple? Is it a good thing to do or does it just look nice? Well, sit down and let me explain a few things. First off, there is no magical formula to remove the "www" or to keep it, it's called link canonicalization and it's a very real thing. Fist off, what in the world is it? In a nut shell, which is how I perceive the things around me, it's just a preferred link that is seen not only by real people, but also by search engines. Now, why is this even a thing? Well, we know that "" and "" are the same website, right? Well, to a search engine crawler, things aren't so black and white. To a crawler, those two links are different and they lead to two different websites, which if you know anything about SEO, is bad. Consequently, this divides your potential Page Rank (PR) between two pages, instead of your one link. Well, we all want to be really good at SEO and have our websites loved by Search Engines, so what can we do to stop this? Well, it's easier than you thought. Here is the low-down: First, make sure you have root access to your server, you know, FTP access. Once you have that, make a new file in the root directory of your website, if it's not there already, called ".htaccess". Once you have that made, place either one of these codes in it: Non-www:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ 
RewriteRule ^(.*)$$1 
Keep the www:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^
RewriteRule ^{REQUEST_URI} 
To finish these, make sure to replace the "" with your website domain, I mean if you want it to work. If not, then that's cool too I guess. So that's it, that's all it takes. No magic, no nothing. Just three lines of text in the root directory of your website. Pretty cool huh? Stick around for even more articles like this!

Leave a comment

Please note, comments must be approved before they are published