The site seems to be working. My index.php at the root reads:
<?php include_once('pmwiki.php');
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<SCRIPT language='_javascript_'>
function redir(){
window.location.href = ""} </script>
</HEAD>
<SCRIPT language='_javascript_'>
redir()</script>
<br><a href="" target="_top">index</a>
<i>
</HTML>
My index.php on /pmwiki reads:
<?php include_once('pmwiki.php');
Since I don't understand some of your terminology, if you will,
please tell me exactly what each file should say.
Thanks,
Wade
On 12/29/2011 12:14 PM, Eric Forgeot wrote:
On 29/12/2011 16:58, Wade Lee Hudson wrote:
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:
<?php include_once('pmwiki.php');
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<SCRIPT language='_javascript_'>
function redir(){
window.location.href = ""} </script>
hmm, no, in fact if you have this structure:
/
/index.php
/pmwiki
/pmwiki/index.php
/pmwiki/pmwiki.php
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/
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)
You should also keep the <a href=""
target="_top">index</a> part.
|
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users