Announcement

Collapse
No announcement yet.

www vs non www

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    www vs non www

    Please excuse my ignorance but if I place a 301 redirect from the non www.mysite address to the www.mysite address in the .htaccess file would this help solve possible duplicate content problems?

    And is it a case of a simple 301 redirect like the ones I've been using to re-direct old site pages to new ones?

    Regards
    www.ecclestonanglingcentre.co.uk

    #2
    Yes, and Yes again. Only caveat - check first that both work. If the non-www is the only one that works, then you will want to 301 the www to that.
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      Originally posted by wjcampbe
      Yes, and Yes again. Only caveat - check first that both work. If the non-www is the only one that works, then you will want to 301 the www to that.
      In the address bar if I put http://mysite.co.uk or http://www.mysiteco.uk they both go to my main index page. I've specified in Google Webmaster Tools that my prefferred domain is http://www.mysite.co.uk

      So am I right in thinking the 301 should redirect from http://mysite.co.uk to http://www.mysite.co.uk

      Thank you for your time and patience
      www.ecclestonanglingcentre.co.uk

      Comment


        #4
        No - it should direct from mysite.co.uk/ to http://www.mysite.co.uk/ - you only ever use the http on the right side of a redirect.
        Bill
        www.egyptianwonders.co.uk
        Text directoryWorldwide Actinic(TM) shops
        BC Ness Solutions Support services, custom software
        Registered Microsoft™ Partner (ISV)
        VoIP UK: 0131 208 0605
        Located: Alexandria, EGYPT

        Comment


          #5
          Am I heading in the right direction with this:

          RewriteEngine on
          RewriteCond %{HTTP_HOST} ^mysite.co.uk [NC]
          RewriteRule ^(.*)$ http://www.mysite.co.uk/$1 [L,R=301]

          Regards
          www.ecclestonanglingcentre.co.uk

          Comment


            #6
            No idea, I always do it the easy way

            Redirect Permanent ecclestonanglingcentre.co.uk/ http://www.ecclestonanglingcentre.co.uk/
            Bill
            www.egyptianwonders.co.uk
            Text directoryWorldwide Actinic(TM) shops
            BC Ness Solutions Support services, custom software
            Registered Microsoft™ Partner (ISV)
            VoIP UK: 0131 208 0605
            Located: Alexandria, EGYPT

            Comment


              #7
              Bun,

              That's very similar to the code I posted here: http://community.actinic.com/showpos...0&postcount=12

              and yes, I would do it this way as it redirects all non-www. urls to the www. equivalent rather than just the home page.

              Mike
              -----------------------------------------

              First Tackle - Fly Fishing and Game Angling

              -----------------------------------------

              Comment


                #8
                Originally posted by olderscot
                Bun,

                That's very similar to the code I posted here: http://community.actinic.com/showpos...0&postcount=12

                and yes, I would do it this way as it redirects all non-www. urls to the www. equivalent rather than just the home page.

                Mike
                I've put the code in place and it seems to work fine.....if I now type in the non www.mysite it gets directed to www.mysite

                Thank you for confirmation......I feel a little bit better now
                www.ecclestonanglingcentre.co.uk

                Comment

                Working...
                X