Forum Moderators: phranque

Message Too Old, No Replies

Remove the 'www' with htaccess

I need to remove the www of my uri

         

asantos

11:23 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



I need to find a way to redirect this:
http://www.example.com/

into this:
http://example.com/

BTW: is that SEO-better?

jdMorgan

1:35 am on Mar 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Asantos,

Neither www nor non-www is better for SEO -- It mkaes no difference.

What can make a difference is that you should only use one and link to that one.

There are hundreds of examples of that code paosted here, so I won't repeat it. Try a search for "RewriteRule www non-www domain RewriteCond HTTP_HOST"

Jim