.htaccess redirect necessity?

by 16 replies
19
Hi there all,
I recently ran a site through one of the online SEO tools and it suggested that I need a permanent redirect so that SEngines would give my site full crdit rather than splitting up between the www and no www.. However, my sitemaps all have www and any mention or links out there all include the www.
Should I add this redirect to my .htaccess (wordpress site)? What do you all do about this?

Thank you
poppybaby
#search engine optimization #htaccess #necessity #redirect
  • then do a 301 redirect to the www part!

    regards,

    Mike
    • [1] reply
    • I can do that sure, but is it really something that's necessary? Do you do it? Thanks.
  • Yes I do.

    I will always choose one!

    better for SEO

    Regards,

    Mike
    • [1] reply
    • As do I - for every domain I use.
      I also do a lot of mod rewrite with .htaccess.

      Mike, while ambiguous in omitting the reasoning behind his advice, is correct.

      Here's the logic:
      The 301 redirect is not as much for your own site (you mentioned a sitemap), as it is for direction of backlinks.
      You may link-build everything with a www prefix, but not everyone linking to you will care about that. This means that search engines will count http://www.you.com and http://you.com as different sites, the same applies to their respective links.

      Since you want to relay credit for all your backlinks to a single domain, NOT performing a 301 redirect is a huge SEO leak.

      Always do this.
      • [ 1 ] Thanks
      • [1] reply
  • Google also suggests that you redirect non-www to www. It is better for search engines.
    • [1] reply
    • That is not true.

      Regards,

      Mike
  • Dancing should be minimal.
    Don't worry!

    Regards,

    Mike
  • This does not work for IE7. While the address bar https said when I got yesterday in the directory not recognize it as a secure page, LOCK appears at first, but then disappears.
    • [2] replies










    • This is not happening because of IE7. In fact, it has nothing to do with your browser.
      Although you should probably get Firefox or Chrome or something that isn't IE, don't make me tell you why.

      The error is happening because the webpage in question is encrypted with SSL.
      https= hypertext transfer protocol secure = SSL = TLS 3.0
      All the same thing.

      By 301 redirecting an encrypted page, you've made apache (or whatever you're using) think that it maybe under attack.

      Your web server is frightened.
      Please, do not confuse your server this way. It does not enjoy this manner of mistreatment.

      Alternatively, if you really want encryption, you can do a layered redirect.
      http://www.askapache.com/htaccess/ss...-htaccess.html
      • [1] reply
  • PHP Code:
    <!-[if IE 7]-->
    Look familiar?
    <![endif]--> 
    Don't get me started, this is one of the (many) reasons I have a mac.
    IE is great if you're looking to hack a browser maliciously.
    The whole activeX reliance garbage is so pointless.
    • [1] reply

Next Topics on Trending Feed

  • 19

    Hi there all, I recently ran a site through one of the online SEO tools and it suggested that I need a permanent redirect so that SEngines would give my site full crdit rather than splitting up between the www and no www.. However, my sitemaps all have www and any mention or links out there all include the www. Should I add this redirect to my .htaccess (wordpress site)? What do you all do about this?