Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Thomas McCarthy
July 17, 2003, 3:38 pm
rate this thread
utilizing PHP templates. My question is this: I could think of no good way
of linking the index.html page to the php templates other than using a
browsers, however. I was wondering if anyone had any better ideas about
how to do this in a more failsafe way, or if
anybody had any comments on the site in general.
nearly right: in practice some visitors will get a blank screen
actually using the home/index page would work well
configure the server to deliver your real home-page
permanent redirect is next favourite
meta refresh may provide some fall-back
placing a link on the page is mandatory in case all others fail.
William Tasso - http://www.WilliamTasso.com
Firstly, not answering your question, but take a look at:
It is a good idea to have a fall-back page if ?include=something is
missing! Probably you should set '?include=home' if none is given.
Now, on to your question. Create a plain text file called '.htaccess'
(note: the leading dot is important!)
It should have one line of text:
This specifies a 'default page'.
Toby A Inkster BSc (Hons) ARCS | mailto:email@example.com | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:firstname.lastname@example.org
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
document.location.replace(url) instead of setting document.location
This prevents the first page from being entered into history.
Uzilla LLC. "Tools for a Usable Web"