I have a file index.html in /var/www which is intended to redirect
any attempt to open the URL
http://startx.co.uk to
http://startx.co.uk/Kingsclere to avoid exposing the 'index' to the
world
Originally I used a
<head>
<meta http-equiv="refresh" content="10: url=new_url" >
</head>
line to do the re-direction but I read this is deprecated and should
be done with apache redirection. I have tried to fathom out how but
failed.
Having looked briefly at what PHP does in the 'PHP Manual' I wondered
if there is a simple bit of php I could use to do the re-direction and
to save me having to learn PHP just for this 'one liner' am asking
for an example.
Alternatively a simple explanation of how to use apache2 to do it
would be gratefully accepted. I need to be told what files to edit on
a debian lenny setup and what lines of code to remove/append.
--
John Lewis
Debian (Sid) & the GeneWeb genealogical data server