I have a website with a file structure a bit like this....
/webroot/folder1/main - php, css etc files in here /webroot/folder1/data/images - images in here
www.mydomain.com/index.php will point to the files in
And, for example, in .css there might be a reference to an image like this...
It is not picking up the images. I guess this is because the
../ wants to go up a level but the website thinks its at the root already so it cant go up?
Is this normal, should I have expected this to happen? Or there a way round it?
(I know I could move images as a sub-directrory of main but I have lots of google map image tiles etc in here and this would make backup difficult and I'd need to change all my tile generation scripts etc.)
I thought of pointing the domain at
/webroot/folder1/ and doing an .htaccess reWrite to silently go to
/webroot/folder1/main but I couldnt get it to work.