Search the Community
Showing results for tags 'absolute refererencing'.
Found 1 result
I want to use absolute referencing for my css and images, because of the mod_rewrite issue in another post. So that if a user adds slash, "/", to end of url the style sheet and images would be found. When I use this for includes it works: define ('BASE_URI', '/home/advice10/public_html/'); But when I use it for css and images the browser doesn't find it. So I asked my webhost how to do absolute referencing and explained about when the slash, "/", is added to the end the browser doesn't find the style sheet, this is what they said: I believe that the absolute external reference you are looking for would be href="http://adviceofthequeen.com/minus/style/zw3c.css". Once again the internal relative reference resolves from the file that pulls up that style sheet, however if you are looking to go a directory up, for example: the location of your client is in "public_html/example" (domain.com/example) directory, and you want to use the style sheet in the "minus" directory, the reference you could use would be "../minus/style/zw3c.css" or the above mentioned "http://adviceofthequeen.com/minus/style/zw3c.css". The ".." stands for parent directory. You should never use the absolute reference of the server internally on a website. So the 2 issues I have with this are: 1) Should I use the http... for style sheet and images directories? 2) I use BASE_URI for my includes directory, and does that go against what webhost said: "You should never use the absolute reference of the server internally on a website."?