Forum Moderators: open
Relative Addressing vs. Absolute [searchengineworld.com]
I use absolute URL's in my main navigation links, i.e. header, left nav and footer includes. I'll then use relative within main content.
A while back, a true professional showed me how they could jack my dns. But, because I was using absolute URLs, they could only get the user to their domain on first click. Once the user clicked on any of my navigation links, the URL changed to my site and thwarted the dns jacking.
I've been using absolute URL's for a long time and cannot offer any evidence that they work better than relative. But, in the case of dns jacking, they offer a sense of security that someone isn't going to jack one of my high ranking domains and steal the traffic. It happens too frequently not to give it consideration. ;)
Out of curiosity, is there any difference between a full hard-coded absolute URL and using relative URLs on a page with a <BASE HREF=""> meta tag? Would using the base href meta provide security against dns jacking? In theory, it seems to offer the best of both worlds - lean code, but absolute addressing. Doesn't it?
The Base Element [webmasterworld.com]