FP 2000 and Relative URLs

G

Grandee

I am developing on a machine that is not connected to the www and uploading
using FTP on another machine. I therefore need to maintain control over what
references are relative and what are absolute. I can enter a filename or
select it from the filename list, but in either case the name is changed to
an absolute local disk address - so the hyperlink 'LateNews.htm' becomes
'C:\My_Web\LateNews.htm'. I can override this with the http: tag in the
address ('http:LateNews.htm'), but this means that I can't test the links
during development, other than seeing the http address of the page it is
trying to load.

According to help, relative URLs are the default, so there is no reference
to how this behaviour can be forced when it doesn't happen automatically.

How can I force FP2K to maintain a plain, unadorned filename, as entered, as
a hyperlink reference, so it is treated as a local file in the current
directory during development, and as a file in the current server directory
when accessed remotely?
 
T

Thomas A. Rowe

Make sure that you always have a web open (File Menu | Open Web) and that all content is created in
or imported into the current open web before using or linking, etc. this will allow FP to create
relative hyperlinks.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Grandee

Thank you for the response.

The relevant files were all created within the current web.

I have isolated the problem to the Base Location in Page Properties. If I
can clear this value then save the file then re-open it, the relative links
are not converted to absolute. But for some pages (it seems to be the ones
that I am using within a frame, but that's not completely tested) I can't
create a blank Base Location - if I clear it and save the file, the default
Base Location is re-inserted. I can't even see where it is getting this
base location information from.
 
T

Thomas A. Rowe

You need to remove the complete Base Location line from your pages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Grandee

Yes. How?

I delete the line and save the page, and it's back when I next open the
page.
 
T

Thomas A. Rowe

If these are pages that load in the frameset, then when you edit (or create new pages), do not do so
while they are loaded within the frameset.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Grandee

Although the issue first arose with pages being edited in a frameset, I have
since tried it both ways and it makes no difference whether they are edited
as part of the frameset or as individual pages. The problem subsequently
occurred with pages that are included in a frameset and with pages that are
not.

I have edited the pages in a text editor and the problem is fixed. I hadn't
tested this because I had assumed that FP was re-inserting the line from
some internal reference when the page was re-opened. In fact, FP was simply
ignoring my attempt at deleting the Base Location entry. This possibility
hadn't occurred to me because I had assumed that such an elementary bug
would be logged somewhere, but I couldn't find any reference to it. I
proved it by deleting the Base Location entry, saving the page and opening
it in a text editor - the line was still there.

Thomas A. Rowe said:
If these are pages that load in the frameset, then when you edit (or
create new pages), do not do so
 
T

Thomas A. Rowe

There is no internal reference, since FP is designed to work with relative hyperlinks. Do you have
this set in a template or other file that you use to make your page from?
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Grandee

I was pretty sure there was no internal reference, but I couldn't think of
where else the line might be coming from. But that was when I was thinking
that the line was being re-inserted when the page was being opened - I have
proved that the problem was that the line was never being deleted in the
first place.

I haven't specified a template. FP has assumed a default template (html.dot)
which doesn't actually exist.
 
T

Thomas A. Rowe

FP2000 uses normal.htm as default new page template, located in the FP application directory.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top