Posted by:
manObject
(---.29.216.155.threembb.co.uk)
My problem is to do with paths to inline images in HTML coded web pages (I am using Drupal 6.22 - which might be a factor). On my production server, there is no problem, but with the WampServer setup, there is an annoying difference of only a single character, but that character is a forward slash directory delimiter.
Using the production server, the following works perfectly:
HTML code snippet of inline image tag:
src="/internal-path-to-image-files/imagefilename"
corresponding markup produced by Drupal using production server setup:
src="[
sitename]; <- this is correct markup
corresponding markup produced by Drupal using WampServer setup on localhost:
src="[
localhost]; <- this is wrong markup
This url is way off - it is above the level of the actual website folder ("/sitename/" is missing). To get the snippet to work, I have to delete the leading slash as shown here:
src="internal-path-to-image-files/imagefilename"
This produces:
src="[
localhost]; <- this is correct markup
Unfortunately, this way of writing the path does not work on the production server.
I am baffled by this because I downloaded the exact same database and set of website files from the production server to localhost. Everything works perfectly apart from this deeply annoying glitch, which prevents me from doing 100% of website development testing before going live with it.
Any help with this would be MOST welcome!
Thanks one and all.