Archive for March, 2009

New Website – Spokane Sprinkler.com

Friday, March 27th, 2009

Just thought I would show everyone the latest website that I designed. Spokane Sprinkler, a website for Spokane Sprinkler Repair Service. This site has a feature that I had never implemented on a site before. If you take a look, you will notice that the background expands and contracts as you drag your browser window open and closed. It was pretty tricky, and even more trickier getting it to work correctly with IE6. Thanks for looking!

Wordpress News Magazine Themes

Tuesday, March 17th, 2009

Click here to view more details

Redirect www to non-www with .htaccess

Saturday, March 7th, 2009

I had a heck of a time finding out how to do this. Seems like everyone wants to know how to redirect the non-www version of their site to the www version. So, for those of us who want to redirect the www version of our websites to the non-www version, put this in your .htaccess file in your root folder:

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

For those of you that want to do the opposite and redirect the non-www version of your site to the www version of your site, use the following instead:

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) http://www.domain.net/$1 [R=301,L]

Hope this helps!