PDA

View Full Version : Absolute/Relative URL's...frustrating.


Gideon147
06-21-2006, 04:35 PM
Hello everyone, my name is Shane and I come from the era of building web pages with HTML. Yeah, I'm a little dusty. For the longest time HTML editors just weren't worth their salt because I could do everything I needed to do by hand and heart. I dropped the art of web design for about five years and have just picked it back up. I took a ten cent college course to sort of immerse myself in the way web pages are being built these days.

Enter FrontPage: the required course software.

I am a graphics designer and I PhotoShop...a lot. The course showed how you can use Photoshop to turn your image into a site using tables. Interesting. So I did and passed the course.

ALL of my addresses in the code are absolute. When I upload the page to the website I can see everything just as it is supposed to be seen. Nobody else can. They can only see the text and background coloring. It's pulling all the images from my hard drive instead of from my web site. I literally have to go in and delete the entire beginning portion of the absolute address to force it to pull each and every image from the site, instead of my hard drive. That's a lot of work. It doesn't just do it with photoshop, it does it with every page I try to build. The default addresses are all absolute. Is there a way to change this?

Shane

MandyJay
06-21-2006, 04:54 PM
Hello and welcome,
Can you give us a url so we can see exactly what you are describing?

Do you have the FrontPage Server extensions on the host server? If so you need to publish via HTTP (check out our tutorial section which shows publishing).

When you edit your site, do you get FrontPage to open the whole website up first before selecting a page?

Did you start your website by File/new web .. and letting FrontPage start you off by creating the basics of the web ?

some of those questions may not apply but thought would ask them up front anyway.

MJ

Gideon147
06-21-2006, 05:47 PM
http://www.cyekat.com/contact.html

This is the site I'm tinkering with for practice. I have fixed the index/portfolio/pricing pages by hand. Thanks for any help you may have to offer in this matter.

Shane

Gideon147
06-21-2006, 06:26 PM
Almost forgot to answer your question. I opened the site in FP after Photoshop created it and did the "convert to web site" thing in FrontPage.

Shane

MandyJay
06-22-2006, 01:41 AM
I would imagine it could have happened when you asked FrontPage to convert the folder into a web. All I know is when I get my slicing program to slice a template and turn it into a webpage with all the html and stuff, I use relative links and the links remain, and dont need changing.

But I dont convert the folder. What I do is get FrontPage to create a blank empty web first. Then I import the page and graphic folder into the newly created web ..... so maybe that is where it went wrong for you.

But ou can do a site wide replace with FP no need to change by hand.

Ctrl+H will bring up the Replace box ....

In the "Find" put (assuming all your pages are on the same level i.e. the file path would be the same) what I have got in bold:

file:///C:/Documents%20and%20Settings/HP_Administrator/My%20Documents/My%20Web%20Sites/CyeWeb/images/CyeWeb_03.jpg

do not include the images/your image.jpg

In the "Replace" box dont put anything, leave it empty. Make sure you check the box that says "all pages" and to search in the source/html code.

FP will then delete everything you entered in the "Find" box and replace it with .... nothing!! leaving you with your correct relative link

images/your image.jpg

MJ