.htaccess stopping image downloads...

Discussion in 'Apache' started by itsall3, Mar 21, 2006.

  1. #1
    Hi guys, i need a bit of a hand :)

    Right now, i have a .htaccess that does the following:

    Clicking a link to a direct file takes you back to my hompage:

    http://www.itsall3.com/wallpapers/wallpapers/wallpapers/4/7511camera.jpg

    Using the image as an "image", just makes it show up dead:

    [​IMG]

    But if you goto my site, and copy and paste the URL to the image in the address bar, it just messes my site up.

    What i would like is... :p
    1. Put the image URL in the addressbar => redirect to my site
    2. Put the image on a forum or page => show my logo.jpg
    3. Apply the settings to all folders below the one with the .htaccess file in it. i.e put it in wallpapers/ and it applys it to wallpapers/size1 wallpapers/size2 etc
    4. Dont allow people to view my .htaccess file.

    Thanks for anyone who can slove these problems.

    Regards.
     
    itsall3, Mar 21, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Nintendo, Mar 21, 2006 IP
  3. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #3
    ryan_uk, Mar 21, 2006 IP