Servers: November 2008 Archives

2008 Nov 19
You can tell the server to automatically append www on each query to your website using .htaccess. That is all incoming requests to a non www query gets forwarded to the host with www prepended before the domain. Although google treats them equally now, yahoo and live search may not. So its still wise to add them to your website somehow. Its a great advantage to your site especialy in terms of search engine optimization.

Here is the .htaccess script that forwards all request without www to your website having the www before the domain name.


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

Please note that this is only possible to websites that are hosted in either Linux or Unix servers running Apache

Today is

About this Archive

This page is a archive of entries in the Servers category from November 2008.

Servers: July 2008 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Sunday

  • tildemark tweeted, "After a long vacation I'm back to promoting websites again."

Friday

Today

  • tildemark tweeted, "limewire is giving free mp3s http://snurl.com/992vg"

Sunday

  • tildemark tweeted, "editing local establishments with google map maker http://www.google.com/mapmaker"
  • tildemark saved the link Google Map Maker
  • tildemark tweeted, "@w_chris_davies this is my main accoun, i have other twitter accounts but this ones get updated regulary."
  • tildemark tweeted, "i cant see my gmail email details when im in standard mode. is this a bug?"