Will using 301 redirect affect cookies

Discussion in 'Search Engine Optimization' started by Hens00, Feb 19, 2010.

  1. #1
    I have a domain that I want to redirect straight to the affiliate site im promoting. So when I type in my domain, it goes straight to the affiliate link.

    Will doing this affect the cookie in anyway? I was thinking that it would be ok, but then I read somewhere that sometimes redirects dont work properly. Any ideas?
     
    Hens00, Feb 19, 2010 IP
  2. raghufme

    raghufme Peon

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    301 redirection is the best practice to redirect any site. I don't think 301 could effect you any means. I suggest 301 redirection. If I am wrong plz correct me.
     
    raghufme, Feb 19, 2010 IP
  3. Hens00

    Hens00 Active Member

    Messages:
    177
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    whats the best 301 redirect to use to redirect all pages of URL A to URL B?

    Below only redirects index page of URL. How to redirect all pages?

    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
     
    Hens00, Feb 19, 2010 IP
  4. Barry Johnson

    Barry Johnson Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It should not matter as long as you set up the redirect correctly. I cloak all oof my affiliate links with a 301 redirect to an internal URL and have never had a problem dropping the cookie.

    Just to make sure.. ALWAYS TEST if you start to mess with an affiliate link or you are using a new affiliate program.
     
    Barry Johnson, Feb 19, 2010 IP