O'Reilly logo

HTML5 Boilerplate Web Development by Divya Manian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Additional customizations

Many additional customizations are provided but are commented out, as they require careful consideration and sometimes may have unwanted repercussions.

Suppressing or forcing the "www." at the beginning of URLs

Most of us do not realize that http://example.com and http://www.example.com are treated as two separate sites by search engines. You can either force rewriting of URLs to www or the non-www ones. I prefer the non-www URL, because it is three characters shorter!

HTML5 Boilerplate's .htaccess file provides you with choices for doing either of them. By default, the configuration forces the server to rewrite requests for http://www.example.com to http://example.com. If you prefer the other way around, have the server ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required