Insert url path

Discussion in 'Apache' started by supriyadisw, Nov 20, 2007.

  1. #1
    supriyadisw, Nov 20, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well

    RewriteRule ^images/(.*)$ images.php?path=images/$1 [L,NC]


    should do the trick i think =)
     
    powerspike, Nov 24, 2007 IP
  3. supriyadisw

    supriyadisw Peon

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks powerspike,

    But I have another problem when I try to show the image:

    img src="http://www.mydomain.com/images/image.jpg"

    I can not see my image. :(

    How to solve this?

    Thanks before
     
    supriyadisw, Nov 27, 2007 IP
  4. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok, the images/$1 , you might need to try /images/$1 without knowing the script, it would be hard to tell

    depending on your script, you might even be able to replace images/$1 with just $1
     
    powerspike, Nov 27, 2007 IP
  5. supriyadisw

    supriyadisw Peon

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks. I will give a try :)
     
    supriyadisw, Jan 22, 2008 IP