Quote:
| Originally Posted by requinix Alias only cares about the URL. Page, site, document root, none of those matter.
Did you try just changing the alias to use "/phpgal/NamadanImages"? |
Well yes and thanks it works - but really cant get my head around the substitution made by apache on this.
The actual page index.php that is found at localhost/phpgal is made up of images constructed along these lines:
<a href="./NamadanImages/craymark/800px-DanubedeltaSulinaarm2.jpg" class="photo-link smoothbox" rel="gallery"><img src="./NamadanImages/craymark_thumbs/800px-DanubedeltaSulinaarm2.jpg" /></a>
surely when resolved the aliases would be formed: ./phpgal/filespec/..../image.jpg
ordinarily however if i included the phpgal part of the url it would not find the image.
To ilustrate what I mean i just bunged a couple of images in the site root: localhost/phpgal
I am requesting localhost/phpgal/index.php in the browser address bar
and hard coded this at the top of the page;
<a href="./phpgal/danube.jpg" class="photo-link smoothbox" rel="gallery"><img src="./phpgal/danube_copy.gif" /></a>
not surprisingly it cant find that image
yet these below it with the altered alias as per your suggestion are working
<a href="./NamadanImages/craymark/800px-DanubedeltaSulinaarm2.jpg" class="photo-link smoothbox" rel="gallery"><img src="./NamadanImages/craymark_thumbs/800px-DanubedeltaSulinaarm2.jpg" /></a>
What is it I am not understanding about the substitution?