In this tutorial, i’ll let you know how to put a ‘www ‘ in front of your domain name, so if you have a domain name like askme.com, then you can seperate some of your service using additional service marker like www, mail, proxy, or even private in front of your domain name.

To putting this domain marking, you can use a .htaccess file which is containts :

RewriteEngine on

# Add a leading www to domain if one is missing.  #
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

# Add a trailing slash if needed                  #
#RewriteCond %{REQUEST_URI} ^/[^.]+[^/]$
#RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]

Put the .htaccess in the root of your site. If you don’t know how to create a .htaccess file, it’s really easy, open your notepad from your start menu, then just copy and paste the script above into your notepad, then save the file as .htaccess file, then upload it into your root directory of your site.

Goodluck to trying!!!

del.icio.us Digg Facebook Google Google Reader Newsgator Technorati