<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 29/12/2011 16:58, Wade Lee Hudson wrote:
    <blockquote cite="mid:4EFC8E11.5040903@wadehudson.net" type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=ISO-8859-1">
      Ok. I deleted index.htm, removed "(in case javascript is disabled
      on the user's browser)" from the code you recommended, and amended
      my index.php to read:<br>
      <blockquote><?php include_once('pmwiki.php');<br>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
        Transitional//EN"><br>
        <br>
         <br>
        <SCRIPT language='JavaScript'><br>
        function redir(){<br>
        window.location.href = "pmwiki"} </script> <br>
      </blockquote>
    </blockquote>
    <br>
    hmm, no, in fact if you have this structure:<br>
    <br>
    /<br>
    /index.php<br>
    /pmwiki<br>
    /pmwiki/index.php<br>
    /pmwiki/pmwiki.php<br>
    <br>
    you can use my redirection code only in the first index.php at the
    root: then when someone browse at your root, the browser will be
    redirected to /pmwiki/<br>
    <br>
    you shouldn't call pmwiki.php ("include_once('pmwiki.php');") from
    the index.php in the root because this file doesn't exist in the
    root. Use the "<?php include_once('pmwiki.php');" in the
    /pmwiki/index.php only (without the redirection code)<br>
    <br>
    You should also keep the <a href="pmwiki"
    target="_top">index</a> part.<br>
    <br>
    <br>
  </body>
</html>