How to redirect WWW to non-WWW

Filed in Apache 0 comments

if you are using an apache webservera and want to redirect www to non-www urls you can achieve this by editing the .htaccess, so follow the instructions proviced bellow

edit the .htaccess foile or if you dont have create one

open it and created this rul by writing this

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

thanks for reading this tutorial and hope it would be helpfull.
have a Great Day

No related posts.

Posted by voshka   @   30 January 2010 0 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone