$20 paypal if you can solve my htaccess rewrite issue

Discussion in 'Programming' started by gaussian, Mar 19, 2008.

  1. #1
    OK i've got a problem with hotlinking images.

    my site looks like this:

    www.mysite.com/
    www.mysite.com/thumbs/1/thumb1.jpg
    www.mysite.com/thumbs/1324/thumb23423r.jpg
    www.mysite.com/uploads/23/fullsize.jpg
    www.mysite.com/uploads/3434/efwefwef.jpg

    The directories under thumbs and uploads are random and can be letters and numbers.

    What I'd like is:

    1. Anything in thumbs can be hotlinked
    2. Anything in uploads is passed to view_image.php (I need the full path passed in, not the url)
    3. Anything else is either handled by an existing file or directory or passed to /index.php

    I've tried soooo many combinations but mod_rewrite is still a mystery to me so if you can help let me know and the first to come up with a solution that works gets $20! :cool:
     
    gaussian, Mar 19, 2008 IP
  2. rudeturk

    rudeturk Well-Known Member

    Messages:
    884
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    120
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Shouldnt be too hard hit me a PM iv been playing with .htaccess for the past hour so got the hang of it.
     
    rudeturk, Mar 19, 2008 IP
  3. milanmk

    milanmk Well-Known Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    PM sent with details.
     
    milanmk, Mar 19, 2008 IP
  4. milanmk

    milanmk Well-Known Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Job completed.
     
    milanmk, Mar 20, 2008 IP