web hosting and development forums
Web Design and Development Forums Archive


Index - HTML forum

problems with img


Post reply

I don't know if that is a http server or html stuff, but locally, if I have something like <img src=/my_image.png> , that doesn't work. But that works on the server my site is stored on. Does my apache do not understand absolute path ?
Where should the /file.ext be? in the same directory as html page?
No, on the site root Maybe the use of alias make the absolute path to point to the wrong location ?
So you have localhost/directory/file.html and the image is in /directory
(my local site is a alias in httpd.conf)
Btw. use quotes <img src="/my_image.png">
And <img.... />
AmeliaR , I have http://localhost/alias_name/page.html with alias pointing to "/data/site/" and my image is in /data/site/
Don't know what are you trying to say, but /> belongs to xml(so xhtml too). in html the slash should not be there. *-should +must
Poolkop: can you browse to localhost/data/site/
Sorry, i don't remember know how to make uri from a server root :/
No, I can't
Should be the same as you typed it - "/my_image.png" for image lying in server root.
Well, it seems it search the image on the server root, like http://localhost Not on the site root
If it's in the same dir as site, then without slash, if it's one (or more) levels higher, use ../ to go one dir up... nothing more could i say, sorry.
Ok. np. thanks anyway




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com