Now these days keeping www in URL is becoming old fashion. How can check many websites for that and the current example is twitter.com
I specially dont like to put www in URL so we can easily remove the www from URL.
Open your apache configuration file. If you are using Linux then open file from following location
# vim /etc/httpd/conf/httpd.conf
put following lines in your virtual directory section.
# remove www from url
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^.*$ http://example.com%{REQUEST_URI} [R=301,L]
We can use this rewrite rule in .htaccess file also. But make sure .htaccess is enable through apache server.
# remove the www from URL.
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^.*$ http://example.com%{REQUEST_URI} [R=301s,L]
For WordPress websites for seo purpose putting above lines in .htaccess file is really best. That will gives you the really great result in future.


Pingback: uberVU - social comments
Pingback: http://blog.estherswhite.net/2008/09/sub-sites-in-wordpress
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
Great read. Thanks for the info!
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader