1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htaccess

Discussion in 'BlackHat Lounge' started by Bartman, Jan 16, 2012.

  1. Bartman

    Bartman Power Member

    Joined:
    Apr 24, 2010
    Messages:
    569
    Likes Received:
    131
    hi guys
    does anyone know what this code does?

    Code:
    #Prevent subfolder loading. This goes
    # in htaccess for the primary domain
    RewriteCond %{HTTP_HOST} ^primary\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.primary\.com$
    RewriteRule ^addon\.com\/?(.*)$ "http\:\/\/www\.addon\.com\/$1" [R=301,L]
    
     
  2. IdiotSavant

    IdiotSavant Newbie

    Joined:
    Mar 31, 2011
    Messages:
    32
    Likes Received:
    8
    your avatar would look better if it only had one nipple on it!!!
     
  3. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer

    The description is in the code. This 301 redirects your traffic to your addon domain instead of displaying it as a subfolder of your primary domain.
     
  4. Bartman

    Bartman Power Member

    Joined:
    Apr 24, 2010
    Messages:
    569
    Likes Received:
    131
    you mean mymaindomain.com is redirected to my addondomain.com?