How to Add www. – or Remove www. – From Your URL

This has been done many times by others, but just a quick tip on how to add or remove www. from your website’s address. This is helpful for URL canonicalization and user experience consistency. You can also achieve SEO-friendly canonicalization using rel="canonical". Oh boy, I’m getting too technical 🙂

Here’s the juicy part:

Add the following to the .htaccess file in your website’s root folder (often named public_html or www). If there’s not a file named .htaccess, you may create it. If you are creating the .htaccess file, set the permissions to 644. For security reasons, you don’t want others to be able to write to this file. Continue reading “How to Add www. – or Remove www. – From Your URL”

Add Canonical Tags to Shopp Plugin for SEO

I am building a store using the Shopp plugin, and I noticed that there are possibilities for duplicate content issues:

  • A product can be accessed both by /shop/{productID} and /shop/{product-slug}
  • A tag can be accessed using /shop/?shopp_tag={tag-uri} and /shop/tag/{tag-slug}
  • A tag can be accessed using /shop/?shopp_category={category-id} and /shop/{category-uri}

Should Google somehow find it’s way into indexing these pages, the value of the identical indexed pages may drop.  Canonical tags aim to remedy this situation, and are implemented by the hugely popular and awesome All in One SEO Pack plugin (see my other SEO tips regarding AIOSEO Pack plugin).

The Shopp plugin does not feature canonical tag support, so here’s a modification you can make that will add support for it without changing any core files in All in One SEO Pack, or in Shopp. Continue reading “Add Canonical Tags to Shopp Plugin for SEO”