Hi at all
online with OS linux apache accept <img src="../images/image.png">
instead xampp accept <img src="images/image.png">
What is always right?
/home
|- /docroot <-- calling document (*.html/php/etc.) is here
|- /images <-- images are here
/home
|- /docroot
|- /images <-- images are here
|- /subdir <-- calling document (*.html/php/etc.) is here
gsmith wrote:it all depends on folder structure and where the calling document is
Nobbie wrote:.. and also it depends on the setting of DocumentRoot, it depends on ALIAS Definitions and last not least on rewrites/redirects/proxies/reverse proxies etc. in .htaccess and/or in the Apache configuration. And i am still unsure, if i haven't overlooked something...
gsmith wrote:I simply wanted to give the poster the general idea of how relative paths work ... which is what these both are.
Users browsing this forum: No registered users and 102 guests