Jump to content

How To Link My Pages Together


idfc

Recommended Posts

Hello all,I'll start by admitting I am a brand-newbie, so take it easy, (if you can) :) I've used Aptana to make my first go at a multi-page website. Question is, if it is not hosted yet, I dont have an address to put into the links in my navigation buttons correct? While viewing my pages through Aptana is there no way to click the "homepage" button and have it bring my to my "home" page?If I must wait until I get it hosted, must I then go back to my xhtml and add the correct link info? Hopefully this made sense, thanks in advance all

Link to comment
Share on other sites

The answer is to use relative links, links that point to a location relative to the current page. For example, to go to the about page, you would link to "about.html" instead of "http://www.site.com/about.html", and to link to the root you would use "/" instead of "http://www.site.com/".

Link to comment
Share on other sites

Thanks Synook,worked perfectly, (but im sure you knew it would)1 other thing, if and when my site does get hosted, will those relative links need to change into actual addresses? or will they stay the same? Thanks again, I've already learned alot from this forum and hope stupid posts like this from me will be less frequent very soon.

Link to comment
Share on other sites

Keep the relative links in the html page and they will work on your site without any changes. They will also work if you add the site to a sub-domain or folder of byour site because the links are "relative" to the file location instead of the server or domain.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...