<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
No luck.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
My config file which is on public_html/local reads:<br>
<br>
$ScriptUrl = '<a class="moz-txt-link-freetext" href="http://charternetwork.org/public_html/pmwiki.php">http://charternetwork.org/public_html/pmwiki.php</a>';<br>
$PubDirUrl = '<a class="moz-txt-link-freetext" href="http://charternetwork.org/public_html/pub">http://charternetwork.org/public_html/pub</a>';<br>
<br>
$EnablePathInfo = 1;<br>
$ScriptUrl = $UrlScheme.'http"//charternetwork.org'.
strtolower($_SERVER['HTTP_HOST']);<br>
<br>
My .htaccess file which is on public_html reads:<br>
<br>
RewriteEngine On<br>
RewriteBase /<br>
RewriteCond %{REQUEST_FILENAME} !-f # IF the requested thing is not a
file<br>
RewriteCond %{REQUEST_FILENAME} !-d # NOR a directory<br>
RewriteCond %{REQUEST_FILENAME} !-l # NOR a symbolic link<br>
<br>
# AND looks like a wiki page name, THEN send to pmwiki<br>
RewriteRule ^([A-Z0-9\x80-\xFF].*)$ /index.php?n=$1&nbsp; [QSA,L]<br>
<br>
# requests for example.net / , send directly to PmWiki and exit<br>
RewriteRule ^$&nbsp; /public_html/pmwiki.php&nbsp; [QSA,L] <br>
<br>
# requests for example.net/Something<br>
RewriteCond %{REQUEST_FILENAME} !-f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # if not a file,<br>
RewriteCond %{REQUEST_FILENAME} !-d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # and not a dir,<br>
RewriteCond %{REQUEST_FILENAME} !-l&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # and not a link,<br>
<br>
# and looks like a PmWiki request, send to PmWiki<br>
RewriteRule ^([A-Z0-9\x80-\xFF].*)$&nbsp; /public_html/pmwiki.php?n=$1&nbsp;
[QSA,L]<br>
<br>
But not even <a class="moz-txt-link-freetext" href="http://charternetwork.org/public_html/pmwiki.php">http://charternetwork.org/public_html/pmwiki.php</a> works now.<br>
<br>
So, on public_html, I add a index.php file that reads:<br>
<br>
&lt;?php include("pmwiki.php");<br>
<br>
Still no luck.<br>
<br>
So I delete index.php and .htaccess. I go can to
<a class="moz-txt-link-freetext" href="http://charternetwork.org/public_html/pmwiki.php">http://charternetwork.org/public_html/pmwiki.php</a> but my links read
<a class="moz-txt-link-rfc2396E" href="http://charternetwork.org/public_html/httphttp%22//charternetwork.orgcharternetwork.org">"http://charternetwork.org/public_html/httphttp%22//charternetwork.orgcharternetwork.org"</a>
and I can't edit.<br>
<br>
I restore config.php to:<br>
$EnablePathInfo = 0;<br>
and everything works.<br>
<br>
What did I do wrong? Thanks again.<br>
<br>
<br>
<br>
Petko Yotov wrote:
<blockquote cite="mid:200912290413.39244.5ko@5ko.fr" type="cite">
  <pre wrap="">On Tuesday 29 December 2009 03:16:52 Wade Hudson wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> Petko Yotov wrote: 
    </pre>
    <blockquote type="cite">
      <pre wrap="">  <a class="moz-txt-link-freetext" href="http://article.gmane.org/gmane.comp.web.wiki.pmwiki.user/54771">http://article.gmane.org/gmane.comp.web.wiki.pmwiki.user/54771</a>

Note that all my PmWiki files are in the root directory of the server, not
in a subdirectory like public_html/ and both urls show me the same stuff:
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap=""> <a class="moz-txt-link-freetext" href="http://www.example.net/pmwiki.php">http://www.example.net/pmwiki.php</a>
 <a class="moz-txt-link-freetext" href="http://www.example.net/">http://www.example.net/</a>
      </pre>
    </blockquote>
    <pre wrap=""> Petko, that looks good, though others have recommended against using the
 root directory.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
My post describes how I use it, from the root directory. To use it from a sub-
directory, you can have in your _root_ .htaccess :

  RewriteEngine On
  RewriteBase /

  # requests for example.net / , send directly to PmWiki and exit
  RewriteRule ^$  /pm/pmwiki.php  [QSA,L] 

  # requests for example.net/Something
  RewriteCond %{REQUEST_FILENAME} !-f        # if not a file,
  RewriteCond %{REQUEST_FILENAME} !-d        # and not a dir,
  RewriteCond %{REQUEST_FILENAME} !-l        # and not a link,

  # and looks like a PmWiki request, send to PmWiki
  RewriteRule ^([A-Z0-9\x80-\xFF].*)$  /pm/pmwiki.php?n=$1  [QSA,L]

(assuming your subdirectory is named "pm" - in your case, "public_html")

Note, on some installations, "public_html" is the name of the default public 
root directory of the server. I recommend renaming that subdirectory to 
another name to avoid confusions.

Don't forget to set in local/config.php the $ScriptUrl variable (see the 
message I gave you earlier).

  </pre>
  <blockquote type="cite">
    <pre wrap=""> But I'm not sure about the best way to move my files to
 the root directory. Can you advise me on that?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
How do you manage (add/delete/rename/move) files on your server?

If you have some sort of FTP file manager like Windows Explorer or FileZilla, 
you go to your subdirectory, select all files, cut with Ctrl+X, go back/up to 
the parent directory, paste with Ctrl+V.

If you log in via SSH, you go to the subdirectory and type 
  mv ./* ../     [press Enter]

Petko
  </pre>
</blockquote>
</body>
</html>