|
| |
|
|
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.
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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)
|
|
|
|
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
|
|
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
|
|
|