pahiker Posted May 13, 2008 Share Posted May 13, 2008 Is there a way to set the base reference for links? IOW, so that I could use something like:home/Folder1/Folder2/page.htmlrather thanhttp://www.mysite.com/Folder1/Folder2/page.htmlPardon if this is a stupid question, and if I don't fully understand address resolution, but my thought is that if I refer to each page with http:.... that the server would try resolving the address, slowing down the page transfer. Whereas, if I just use the home/ it would understand to start at the top of the current site.I know I could use back references by doing ../../ but, with the design of my site, that is more difficult than I care do deal with.Thanks, Mike Link to comment Share on other sites More sharing options...
Ingolme Posted May 13, 2008 Share Posted May 13, 2008 You can write /Folder1/Folder2That will reference from the top directory. Link to comment Share on other sites More sharing options...
aspnetguy Posted May 13, 2008 Share Posted May 13, 2008 use the <base> tag http://xhtml.com/en/xhtml/reference/base/ Link to comment Share on other sites More sharing options...
pahiker Posted May 13, 2008 Author Share Posted May 13, 2008 You can write /Folder1/Folder2That will reference from the top directory.PERFECT! I had to make a few changes because the top directory wasn't what I thought, but it's working! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.