PDA

View Full Version : Advanced Html Assistance plz


markspec87
09-04-03, 01:53 PM
im trying to build a website, but encountering difficulties. I have a folder on my hard drive for all the files. When i put a link in one of my pages, to goto say page.html, i do the A HREf and all that and put the actual link as "/page.html" becuase when its on the web space, it will work this way. the downside to this is that when i want to use it off my hard drive, it goes to C:/page.html rather than the actual location of my website files. How can i solve this problem so it works for both?:confused:

BdSBB
09-04-03, 01:58 PM
Well, you could try '<base href="c:/pathto/files/">' and change it to 'http://domain.com/pathto/files/' when you want to upload. else you get rid of the / in the /page.html

really no reason for /page.html unless your calling it from an above folder.

markspec87
09-04-03, 04:12 PM
cheers, ill try it out

markspec87
09-04-03, 04:14 PM
I got rid of the / in page and it works perfectly, thanks a lot, youve saved me a lot of work

MadDog
09-04-03, 04:31 PM
Topic moved to more appropriate forum.