Matt's Blog

Archive for June, 2007

Matt’s Blog Gets Class B Compliance

Sunday, June 24th, 2007

I have just made it so that all traffic going to will be silently redirected to Which makes Matt’s Blog a Class B (the preferred class) in‘s books.

If you’ve never heard of before, it’s basically a campaign trying to raise the fact that www. is/should be deprecated. They have 3 “ranks” or “classes”. Class A, B and C.

Class A All traffic to and is accepted, and no redirect happens.
Class B The preferred class. All traffic to is silently redirected (301) to
Class C The hardcore class. Traffic to is denied and the user can only access the site through This class is not recommended.

Most hosts default their DNS to Class A. Where all traffic to and is accepted. The problem with Class A is that Search Engines might penalize you for having duplicate content (because you have the same content on and and you might end up with Search Results with and without the “www.“. You could even have 2 different PageRanks for your main page, depending on if you check with www. or no-www. Google allows you to define which domain you would like to show up in their Search Results. You can do this through Google Webmaster Tools. But, Google is only 1 of the many Search Engines.

So, how can you redirect to Well, it’s actually quite simple. This way will only work on Apache servers with mod_rewrite enabled. First, create a file (or open it, if it already exists) in your site’s root called .htaccess (including the period, but nothing before the period). Then, place this code in it (replace domain\.com with your domain name, make sure you escape the period):

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain\.com/$1 [R=301,L]

Let’s go over that code now.

RewriteEngine On simply tells Apache to allow you to use the mod_rewrite module (make sure it’s installed, first).

RewriteBase / makes sure we’re working on the root domain.

RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC] tells the Server to see if the URI requested has the domain The [NC] tells it that it’s case-insensitive.

RewriteRule ^(.*)$ http://domain\.com/$1 [R=301,L] says that if RewriteCond is true to silently redirect the user to ^(.*)$ holds the value of what was after the original URI. $1 then makes sure that they’ll be redirected to the same page they requested. [R=301,L] will tell the User-Agent (browser, or bot) that the redirect type is 301 Permanent and and L tells the Server that it’s the last rule.

Note: If you’re using WordPress for the site in question, the above code must go above WordPress’ redirect stuff. So place it somewhere above # BEGIN WordPress.

Then, save the file and upload it to your site’s root. Now, all that’s left to do is to get Validated by Go here to do that. Your site should now be a Class B!

That’s it, your site is now even more Search Engine friendly.

Get it? Got it? Good!

BrowseHappy Logo is Gone in WordPress 2.3

Thursday, June 21st, 2007

WordPressIf you’ve ever used WordPress with Internet Explorer, you’ve probably seen that little logo at the bottom of the page. That logo is for BrowseHappy. Another campaign trying to get you to switch browsers. Well, I’ve got some good news for you. In WordPress 2.3, that BrowseHappy logo will no longer be there. Last month I wrote about how I submitted a Ticket and Patch to stop the BrowseHappy logo from showing up in IE7. Well, last night, after a little bit of discussion on the Ticket comments, I submitted a new patch that completely removed the BrowseHappy code from WordPress. Well, today, that patch has been committed into the WordPress Subversion Trunk (which will become 2.3). Changeset 5742 fixes it.

Sweet. 😀

Update [June 21, 2007]: Changeset 5744 now reverts Changeset 5742. Matt Mullenweg (founder of WordPress) wanted it reverted, since BrowseHappy is his site. Which is totally unfair, because these intrusive campaigns had a time, and they had a place. That time is no longer existent, and that place never should have been WordPress.

Video: Microsoft Surface Parody

Thursday, June 21st, 2007

Okay, you’ve probably heard of Microsoft Surface (if not, put up a For Sale sign for under that rock, and move to the real world). A table, which is a giant touchscreen computer. It wasn’t long before someone made a Parody video of the video(s) Microsoft made. Here it is:

Apple iPhone, Coming to Canada

Thursday, June 21st, 2007

Apple iPhone, Coming to Canada

The very hyped about, and most awaited phone, is coming to Canada. That’s right the Apple iPhone will be coming to Canada! I inquired about it with Rogers Wireless, and I got a response back shortly afterwards. Here’s the key points from their response:

Rogers is actively working with Apple to launch the iPhone in Canada
as soon as possible and will be the exclusive provider of the iPhone in

Please be advised that Rogers will be offering the iPhone exclusively
in Canada.

Launch date and pricing for Canada are not yet available.

Other Canadian wireless carriers will not launch the iPhone; Rogers will be the only Canadian wireless carrier to offer the iPhone.

This is great news! Now, to elaborate a bit on that.

The iPhone will be exclusively offered at Rogers in Canada because it’s currently the only Wireless Carrier in Canada to be using up-to-date Wireless service technology. Telus is using really old technology, and Bell is using newer technology, but still not new enough.

As I understand it, the iPhone is a 2G Quad Band GSM and EDGE phone, while Rogers supports 3G Quad Band GSM and EDGE service. So, the iPhone and the Rogers Wireless service are compatible (and then some).

I’m going to estimate that the iPhone will be released in Canada in August. As for the price, I’m going to estimate… for the 4GB, $599 CAD with no contract and $399 CAD with a 3 year contract. For the 8GB, $699 CAD with no contract and $449 CAD with a 3 year contract.

One problem I see here, is that data plans in Canada are expensive; and with the iPhone you’ll probably be using lots of data. So you’ll most likely be seeing “iPhone Plans”, just like “Blackberry Plans“. The iPhone Plans will have considerably more data for considerably cheaper than the Blackberry Plans. That’s my guess, anyways.

The iPhone itself is actually smaller than people think it is. It’s thinner than the Blackberry Curve, and is just a bit bigger than my closed RAZR V3i. It’s actually thinner than the V3i, too. Which is amazing, since it has way more features. The iPhone is a little heavier, though.

Apple has said that the screen has been “upgraded” from a Plastic screen, to a Glass screen. That may seem like a good thing… until you drop it and the screen shatters into a million pieces (it’s probably temperated, though, so it’ll just crack). The battery life is pretty impressive, at least. Up to 8 hours of Talk time, 6 hours of Internet, 7 hours of Video, 24 hours of music/audio or 250 hours of standby time. Which probably exceeds most (Smart)Phones, MP3 players and even the iPod 5.5 Generation (Video).

For those of you in other parts of the world, Rogers also told me this:

Apple is planning to introduce the iPhone in Europe (Q4 2007) and Asia

I’m looking forward to the release of the iPhone in Canada. Hey, maybe I’ll even save up to get one!

WordPress 2.2.1

Wednesday, June 20th, 2007

WordPressThat’s right, the latest “Bug Fix Release” (maybe even some security patches) for WordPress 2.2 has been released. WordPress 2.2.1 contains tons of Bug Fixes and it would be wise to upgrade, otherwise, you might encounter one of those bugs. 😉

You can see all the changes that went into 2.2.1 here.

I’ll be upgrading to 2.2.1 soon. Download 2.2.1 now!