mod_rewrite and images path

Discussion in 'Apache' started by chawan34, Feb 4, 2011.

  1. #1
    Can I change
    <src=/image/123.jpg>

    to
    <src=image/123.jpg>

    by removing "/" in mod_rewrite.

    "/" in path causing browser read image from
    http://domain.com/image/123.jpg -> image not found

    not in right path
    http://domain.com/myapp/image/123.jpg

    Currently i'm using shared hosting. How to tweak this things?
     
    chawan34, Feb 4, 2011 IP
  2. moads

    moads Member

    Messages:
    115
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    moads, Feb 5, 2011 IP