PDA

View Full Version : URL Links



mrbuds
24th Sep 2002, 07:17 pm
Great forum! I am a new member but have used dreamwever since version 3.0. I have a web site defined and have done all the work on piecing it together. I am haveing problems previewing the page. It works fine when i am at home and preview but as soon as I put it on a disk or view it on another computer I am unable to browse the site as if it were together. I have checked all the links and everything but have seemed to hit a wall in ideas. If anyone else has run into this problem or have any advice please let me know.
Thanks!

CADTutor
25th Sep 2002, 02:11 am
From what you say, it sounds as though your links are all absolute rather than relative. If you make relative links (i.e. relative to the current document lotation) your links will work whether the site is viewed on a CD, floppy or a different PC. Look at the HTML code for your links. If you see something like <a href="C:MyWebs/MySite/WebPage.htm> then you will know your links are absolute. The solution is to replace this with something like <a href="../MySite/WebPage.htm>. Obviously you will need to work out the relative equivalent to the absolute path.

mrbuds
25th Sep 2002, 04:49 pm
Thank you very much I will try that and let you know if it solves my prob. ;D

mrbuds
17th Oct 2002, 12:44 am
Hey CADtutor sorry for the delayed response, not much time to work on the site lately. Ok now I tried and checked my links they seem ok. The weird thing is the web site does not work offline @ my work but it does work @ home. Now I created this web site @ work for work so the references seem to be fine would you have anymore solutions or suggestions?? Would the Microsoft Data file that you have to get when you install Dreamweaver have anythings to do with it???

Thanks A lot ;D

Mrbuds

Psmeg
17th Oct 2002, 03:30 am
Hi Mrbuds,

Where did you create the website? Was it on your home PC and then transferred a copy to work to try it out?

If that was the case and you, for example, created the site in c:\my documents\my site\ and then you took a copy of all the files in your web site folder, transfered them to work and pasted them into c:\my documents\work folder\my site\ this would cause the links you created in your home environment to be wrong at work (because of the different folder structure).

I'd recommend when you try to view your site in different locations you re-create the folder structure on the machine that you created the site on.

It's always good to choose 'view source' in your browser when previewing the page when you get problems and look for the link in the HTML to see where it's trying to link to.

If this sounds a little confusing (and I'm confusing myself atm), let me know and I'll try to clarify it (it's late and I'm tired). :D

Regards

Psmeg

mrbuds
5th Dec 2002, 08:56 pm
Hey Psmeg

Thanks for all your help. The problem ended up to be a microsoft data access problem. Some how when I updated my windows it changed a setting and that is when the problem all started. I now found which update it was and reverted back. Everything works like it should.

Sorry for the late reply

Thanks again

Mrbuds