Hotlinking protection blocking images in subdomain

Discussion in 'Apache' started by Smyrl, Jan 23, 2006.

  1. #1
    I enabled hotlinking protection via my control panel which resulted in the following code added to my .htaccess file

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://domain.biz/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://domain.biz$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.biz/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.biz$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

    Now I attempted to set up a subdomain and all my images in subdomain web do not show.

    Are there some lines I can add to .htaccess to keep hotlinking code for main domain in place and at same time allowing images to show in subdomain?

    Thanks,
    Shannon
     
    Smyrl, Jan 23, 2006 IP
  2. PedstersPlanet

    PedstersPlanet Peon

    Messages:
    195
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try
    Im not sure though, but try it....Slap me if it doesn't work lol
     
    PedstersPlanet, Jan 24, 2006 IP
    Smyrl likes this.