Stripping the leading '/' from hyperlinks
hello. this question i didn't know where to put it, so here it is.
Now my university has a website and i am required to read rather a lot of it for my course. i can either go on the internet to do this, print it all out (!) which would be a real pain in the bum since all the pages are about 2 paragraphs long, or else they provide an offline version of it. the offline version comes as a set of *.exe files but that's not the problem. these are winzip self-openers and can be opened using an 'unzip' no problem. however i have a problem. i noticed last night that every single hyperlink in the offline version has got a leading / on it! so for example if i am on the page /home/calum/T171/index.cfm and i click a link, instead of going to /home/calum/T171/calendar.cfm it will attempt to go to file:///T171/calendar.cfm (which does not exist). the only workaround i have thought of for this is to make / the site root directory, which i am obviously not going to do.
I thought maybe this was some incompatibility with my windoid university, but no, i tried it here on win2000 at work too and same problem. Also, i tried to wget the online version however the site requires me to login via a whole bunch of javascript and secure webpages and all that crap and when i wget it just times out because i can't authenticate myself to it.
Any idea for how i can strip the leading '/' from the hyperlinks and leave all the other instances of '/' undamaged, and not ruin the image files and so on?
ta.
Now my university has a website and i am required to read rather a lot of it for my course. i can either go on the internet to do this, print it all out (!) which would be a real pain in the bum since all the pages are about 2 paragraphs long, or else they provide an offline version of it. the offline version comes as a set of *.exe files but that's not the problem. these are winzip self-openers and can be opened using an 'unzip' no problem. however i have a problem. i noticed last night that every single hyperlink in the offline version has got a leading / on it! so for example if i am on the page /home/calum/T171/index.cfm and i click a link, instead of going to /home/calum/T171/calendar.cfm it will attempt to go to file:///T171/calendar.cfm (which does not exist). the only workaround i have thought of for this is to make / the site root directory, which i am obviously not going to do.
I thought maybe this was some incompatibility with my windoid university, but no, i tried it here on win2000 at work too and same problem. Also, i tried to wget the online version however the site requires me to login via a whole bunch of javascript and secure webpages and all that crap and when i wget it just times out because i can't authenticate myself to it.
Any idea for how i can strip the leading '/' from the hyperlinks and leave all the other instances of '/' undamaged, and not ruin the image files and so on?
ta.