PDA

View Full Version : Hyperlinking Pages


Goober
08-30-2003, 12:50 AM
Hey I just wanted to know if it would do any kind of harm to my website (make it slow or something like that) if i where to give links the full path to the page i on my site.

For Example: <a href="http://www.mysite.com/main.html">

instead of <a href="main.html">

i want to know if its ok to do this for images to

For example: <img src="http://www.mysite.com/pic.jpg">

instead of: <img src="pic.jpg">

will this cause any problems, or make my website slower?
(i want to know this because i plan to inlcude the same header/navigation file into other files outsite of the root folder where my other main pages are)

MotherNatrsSon
08-30-2003, 12:57 AM
On my site I have all the links the full path. It does not appear to slow anything down at all. The only way you can access a secure page is to have the full path with the https: so I think it is just "easier" and less coding for the most part.

As for the images I do the relative (shortened) version, but again I think it is for the "less" coding reason than speed. Could be wrong but if there is a difference it must be nano seconds.

MNS

oracleguy
08-30-2003, 04:00 AM
What do you mean outside the root folder?

Unless you are switching over to https like MNS said, it is probably easier to just use relative links in case you change domains or something. You can access any folder in the directory structure by using relative links.

Goober
08-30-2003, 05:33 AM
Originally posted by oracleguy
What do you mean outside the root folder?

Unless you are switching over to https like MNS said, it is probably easier to just use relative links in case you change domains or something. You can access any folder in the directory structure by using relative links.

never mind the root folder thing, for a sertian reson i need to use the full path of my links. its to hard for me to explain why exactly i need to do this but i just wanted to know if it will slow it down or anything like that