Skip to main content
Participant
March 26, 2007
Question

Can someone Please explain paths to me

  • March 26, 2007
  • 1 reply
  • 187 views
I have a ms access database. One of the fields is a link to the details page. The link is the path to the doucment on my testing server (IIS). The links path is to the server: http://localhost.
I don't see how these links will be found when I upload the site to a host, so there must be something wrong in my design. However, I couldn't see any other way to do it. The way it's set up is the user clicks on a link to class category. The class category page is dynamic and may have 20 classes, and a link to the details page. The details page includes thiings like the class name, date, and instructor, start and end times, as well as the shopping car and registration forms.
Have I done this correctly, and if so, when I upload the site how can the details pages be displayed since the path is written to the database. Thanks.
This topic has been closed for replies.

1 reply

March 26, 2007
Can you make your links relative, rather than absolute.

That is instead of

http://localhost/pages/index.html
it would be in the databse as :

/pages/index.html

So, whether it is on the the local server, or the live, the links works.

Make the links relative to the "site" root.

Google relative vs absolute links for more info...

Lisa