Entries from February 2009 ↓

Automated PHP Rel Canonical URL Script

On a recent project we had multiple duplicates of product detail pages mainly due to querystrings setting the sizes of the products. To combat this I decided to use the new Canonical REL URL tag now supported by Google, Yahoo and MSN and thought that if you’re experiencing the same issue that you’d appreciate this elegant solution to your own canonical url problems.

In the head just enter:

<link rel="canonical" href="http://www.website.com<?php echo $_SERVER['PHP_SELF']?>">

if you’re using a rewritten path then it needs to be changed to:

<link rel="canonical" href="http://www.website.com<?php echo parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);?>">

What this does is write in the url without the querystring in essence telling Google and the others that the non querystringed page is the one they should really index (googles supposed to 301 the links across).

Try SEOMOZ Pro for $1

Rand of SEOMOZ fame must be going bonkers.

Theyve just announced that theyre giving a months trial of SEOMOZ pro accounts for only $1 and they expect them to be all sold out before monday so get em while theyre hot

Use the code: SUCCESS09

Its worth it because they have some great tools (juicy link finder anyone)

go now!

Logmein File Transfer for Free with Dropbox

Working from home today because of the snow, I’ve just used Logmein to access my work PC and remembered that a few days ago I installed Dropbox., a file synchronization application for mirroring selected folders between my local and remote PC.

This is significant because the free version of Logmein doesn’t allow file transfer from remote to local PC’s whereas with the use of Dropbox I can now do this with ease.

Happy days!