[pmwiki-users] emacs pmwiki-mode: getting closer

Joachim Durchholz jo at durchholz.org
Sun May 8 06:08:16 CDT 2005


Orm Finnendahl wrote:
> after successful Installation of the rewrite module in Apache and
> using the Clean URL recipe from pmwiki's cookbook, my Browser displays
> the page http://localhost/pmwiki/Main/HomePage correctly (as an alias
> for http://localhost/pmwiki/pmwiki.php?n=Main.HomePage).
> 
> Now pmwiki-open from pmwiki-mode in emacs accepts the address as an
> valid URI, but displays the following Apache output in its buffer:
> 
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>301 Moved Permanently</title>
> </head><body>
> <h1>Moved Permanently</h1>
> <p>The document has moved <a href="http://localhost/pmwiki/?pagename=Main%2eHomePage&amp;action=source">here</a>.</p>
> <hr>
> <address>Apache/2.0.52 (Debian GNU/Linux) PHP/4.3.8-5 Server at localhost Port 80</address>
> </body></html>
> 
> html-code is definitely not what I wanted here. Does anybody have an
> idea why that happens and what to do in order to avoid the redirection
> message from Apache?

You have entered http://localhost/pmwiki or http://localhost/pmwiki/, 
and Apache responded with a redirect to 
http://localhost/pmwiki/Main/HomePage.

Obviously, the emacs mode isn't smart enough to properly follow 
redirects and gives you the error document.

Simply give the full URL, i.e. http://localhost/pmwiki/Main/HomePage , 
do avoid the problem. (You could also report the problem to the author 
of the emacs mode.)

HTH
Jo



More information about the pmwiki-users mailing list