Web Design

Web Design, likley a lot about what you should and should not do in web design from a coding and design standpoint as relating to usability or “web site common sense”.

htaccess Rewrite URL to www – or No www

To make ALL visits to your website go to your website with www. (www.example.com) or without it (example.com) use the following code in your .htaccess file. The idea is that some search engines (or at least the important ones) will direct “search engine juice” to one of your URL’s instead of splitting it between 2, and Web Analytics programs list one URL per page instead of 2:

KEEP WWW.

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

REMOVE WWW.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^.*$ http://example.com%{REQUEST_URI} [R=301,L]

This way no matter what a web visitor types they are sent to your website with or without the www, and as mentioned above benefits SEO and Analytics.

Free Book Giveaway: Web Style Guide

Since I’m late with the book giveaway I’m announcing the first book to be given away, beginning later this month. I’ll be giving away my Web Style Guide: Basic Design Principles for Creating Web Sites, Second Edition by Patrick J. Lynch, Sarah Horton, and Louis Rosenfeld (Paperback – Mar 2002)link on Amazon for info & picture.