Pic links broken-- how do I make them absolute URLs?

G

Guest

I'm working on a new site, and I created a custom 404 error page. If I go to
a nonexistent page where the URL points to the same folder as the 404 file,
it works fine. If, though, the URL points to a folder at a deeper level, the
404 page loads but the external style sheet and all images cannot be found.
How do I link these in absolutely (without touching the HTML)?
 
R

Ronx

You touch the HTML. All links on the page must be absolute or root
relative, that is must be of the form
http://www.example.com/path/page.htm or /path/page.htm
FrontPage will not do this by itself - you have to change every link in the
page manually[1]. If you use link bars, you will have to recreate these
manually as well.

[1] Search and replace can be used -
search for href="../../ replace with href="/
search for href="../ replace with href="/

and so on, but do the deepest links first.
 
G

Guest

Thanks for the reply. I came to the same conclusion, and I elected to make
the 404 default page a simple text page with a 1-second redirect to the
actual error page. Eliminates the little idiosycnrasies.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top