What Does This .htaccess Do? What Does The Code Mean?

Discussion in 'Apache' started by bad_bob00, Sep 14, 2009.

  1. #1
    Hi,

    On one of my domains I want it to redirect to an affiliate link. I looked at the .htaccess file on my site and it has the following code, but I'm not sure if its set up to redirect properly?

    This is the code:


    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^strryke.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.strryke.com$
    RewriteRule ^(.*)$ "https\:\/\/www\.stryyke\.com\/\?affiliateID\=123" [R=301,L]



    Does it seem like a standard redirect? Could anyone basically explain what it does?


    Thanks for any help
     
    bad_bob00, Sep 14, 2009 IP
  2. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #2
    Anyone able to help please? Am just trying to find out what the code in my .htaccess file means - is it a normal redirect?
     
    bad_bob00, Sep 16, 2009 IP
  3. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #3
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^strryke.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.strryke.com$
    RewriteRule ^.*$ https://www.stryyke.com/?affiliateID=123 [R=301,L]
    
    Code (markup):
    no slash \
     
    thuankkk, Sep 16, 2009 IP