I am currently programming in PHP on a server. But when uploading images to my web space and showing them I sometimes need
myaddress.com//image.jpg
and sometimes
myaddress.com/image.jpg
It seems to switch from time to time. Why is that and how can I fix it? I have two pages that loads with ajax directly when choosing them in the navigation bar. And when I use // it works on one of the pages and when using single / it works on the other. Why?
Thanks in advance!
Use only one slash. Try putting full path to file and/or domain with protocol (http://myaddress.com/image.jpg)