<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The site seems to be working. My index.php at the root reads:<br>
<blockquote><?php include_once('pmwiki.php');<br>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><br>
<HTML><br>
<HEAD><br>
<br>
<SCRIPT language='JavaScript'><br>
function redir(){<br>
window.location.href = "pmwiki"} </script><br>
<br>
</HEAD><br>
<br>
<SCRIPT language='JavaScript'><br>
redir()</script><br>
<br>
<br><a href="pmwiki" target="_top">index</a>
<i><br>
<br>
</HTML> <br>
</blockquote>
My index.php on /pmwiki reads:<br>
<blockquote><?php include_once('pmwiki.php');<br>
</blockquote>
Since I don't understand some of your terminology, if you will,
please tell me exactly what each file should say. <br>
<br>
Thanks,<br>
Wade<br>
<br>
<br>
On 12/29/2011 12:14 PM, Eric Forgeot wrote:
<blockquote cite="mid:4EFCCA32.2010101@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
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>
</blockquote>
</body>
</html>