a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Absolute and Relative Links

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Absolute and Relative Links
Page: [1]
 
Peter456

 

Posts: 29
Joined: 6/4/2004
Status: offline

 
Absolute and Relative Links - 1/29/2007 12:26:01   
Hi: (I hope I'm in the right forum!)

I have a very large site. Almost all the links in my site are 'relative links' but a few are 'absolute'. I'd like to find all the 'absolute links' in the site and change them to 'relative' (by removing the first part of the link name) on the copy of the site held on my own PC.

Is there an easy way to do this?

I can find the 'absolute links' and change them to 'relative' on the copy of the site held on the server where it is hosted, by running FrontPage Reports, then looking down the list of external links, but I'd like to do that on the copy of the site held on my own PC. That's normally where I make the changes.

Thanks for any suggestions you have.

- Peter Stubbs.
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Absolute and Relative Links - 1/29/2007 12:41:15   
In FP2003 you can do a find on the entire site. Search for the first bit and it'll come back with a list of the pages it's in. You can then do a replace all if you want but take a copy of the site first.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Peter456)
Peter456

 

Posts: 29
Joined: 6/4/2004
Status: offline

 
RE: Absolute and Relative Links - 1/29/2007 13:02:27   
Hi Jaybee:

Thanks for the quick reply.

I use FP2002, but it has the same feature. I've used it once and it worked well (though taking a copy of the site first is certainly good advice).

However, the 'find' (whether used for a single page or for the whole site) only appears to find only text that appeared on pages in the site. What I'm looking for is text that appears in the 'address field' for a hyperlink from one of the fields on the page.

- Peter

(in reply to jaybee)
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Absolute and Relative Links - 1/29/2007 13:29:00   
Eh? Lost me there. Try doing the search in code view. Or are you talking about links being generated by FP bots?

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Peter456)
Peter456

 

Posts: 29
Joined: 6/4/2004
Status: offline

 
RE: Absolute and Relative Links - 1/29/2007 18:32:49   
Hi Jaybee:

I think you've solved it for me this time, thanks Jaybee.

I was talking about the links that I had set up on the web site myself; not links generated by FP bots (whatever 'bots' are!)

The 'find' seems to do what I want when I'm in HTML view.

I think I'll wait until I'm wide awake tomorrow morning before I try to make the changes, as there's less chance of me doing anything daft that I'll regret then. I'll also make sure that I have a copy of the site saved first.

Best wishes:

- Peter

(in reply to Peter456)
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Absolute and Relative Links - 1/29/2007 19:20:47   
quote:

The 'find' seems to do what I want when I'm in HTML view.
That's because in code view the entire link is there whereas in design view you only get the link text.

Have a good sleep, take a deep breath then press the button. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Peter456)
Peter456

 

Posts: 29
Joined: 6/4/2004
Status: offline

 
RE: Absolute and Relative Links - 1/30/2007 14:55:51   
Hi Jaybee:

I've just tried to use 'Find and Replace' on pages in my G drive. That's where I hold my local copy of the web site.

My plan had been to change all 'absolute link names' such as "file:///G:/EdinPhoto/0_engraving_1" to become just "0_engraving_1", then to publish the site again, and that way the links on both my local copy of my site and the published copy would all become relative links.

However, as soon as I started, I realised that on my G drive, the links already had the shorter names.
i.e. as this copy of the web site is on my G drive, the computer did not need to start the link names with "file:///G:/EdinPhoto/".

Aren't computers logical! - frustratingly so, sometimes!

So I've gone back to my old method of dealing with this problem, and I've used Front Page Reports to find the relative links on the published site, then changed the addresses there to 'relative'.

I hope all that makes sense to you!

- Peter.

(in reply to jaybee)
Peter456

 

Posts: 29
Joined: 6/4/2004
Status: offline

 
RE: Absolute and Relative Links - 1/31/2007 15:33:46   
Hi:

Here's something else that I can, perhaps, follow up if you can advise me.

I'd like to look at the FrontPage HTML view of some of the pages on my web site, and discover whhich of the links on that page are absolute links.

Can you tell me how the HTML code (on my web site pages held on my own PC) differs depending on whether the links that I have set up are relative or absolute?

I only ever want to set up relative links. I'm not sure how some of those that I have set up in the past are absolute. If you have any advice on this, I'd appreciate hearing it.

Thanks.

- Peter

(in reply to Peter456)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Absolute and Relative Links - 1/31/2007 16:06:57   
If I may interject here....

You can find all absolute links on your site by using the Find feature but make sure you have the "All Pages" and "Find in HTML" checked. Then look fir these strings:

http://
https://
file:///

Those should find all absolute links on all pages of your site.

Hope it helps.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to Peter456)
mtfm

 

Posts: 426
Joined: 1/13/2006
From: Mesa, AZ
Status: offline

 
RE: Absolute and Relative Links - 1/31/2007 16:28:20   
Any time you are in the code view and you see

http://blahblahblah
or
https://blahblahblah


Those are absolute.

If you see something that looks like
 /./../blahblahblah 
(no http or https in front of it) it is relative.

Does that help?

Also, if you see
G://blahblahblah
it is pulling off your G (or c or whatever) drive-- which is bad, because the user may not have access to that drive and will get a broken link error, even though it works for you when you preview (because you have access to that drive)

(in reply to Peter456)
Peter456

 

Posts: 29
Joined: 6/4/2004
Status: offline

 
RE: Absolute and Relative Links - 1/31/2007 16:51:30   
Hi rdouglass and mtfm: Your comments are helpful. Thanks.

I'm happy with my "http://" links and my "https://" links that I've set up from my site.
These were deliberately set up as absolute links, and they work fine.

Its the "file:///" links that I want to change, so that they no longer point to my G file.
(I don't know how I managed to set these up. I wanted them to be relative links.)

I've just run the "Find in HMTL for all pages" searching for "file:///" and it has produced a long list of pages that I'll want to change.

Now I'll be able to make the changes to the site.
e.g. by running the "Find in HMTL for all pages" searching for "file:///G:/EdinPhoto/0 (or 1, 2, 3 etc)" and replacing that whole string by "0 (or 1, 2, 3 etc.)".

- Peter

(in reply to rdouglass)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> Microsoft FrontPage Help >> Absolute and Relative Links
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts