[pmwiki-users] Problem with Clean Urls . . .

Patrick R. Michaud pmichaud at pobox.com
Thu May 4 13:25:38 CDT 2006


On Thu, May 04, 2006 at 01:09:31PM -0500, Ben Wilson wrote:
> I'm trying to help a server transfer, and the clean urls behavior is
> failing.[1] Specifically, although the URL is clean, when the page
> loads, the browser address bar shows an "unclean" URL.[2] Here is the
> .htaccess:
> 
> RewriteEngine on
> Rewritecond /{redacted}/%{REQUEST_URI} !-f
> Rewritecond /{redacted}/%{REQUEST_URI} !-d
> RewriteRule \.php$ http://0068952.netsolhost.com/index.php
> RewriteRule ^$           index.php  [L]
> RewriteRule ^([^/a-z].*) index.php?n=$1  [QSA,L]
> 
> The first RewriteRule is manditory, otherwise no PHP scripts would
> work. The latter two lines I have frequently used on other web hosts
> without incident.
> 
> Any help would be appreciated.

Is there another Alias or Redirect directive somewhere that
might be doing things before the URL rewriting is able to
take place?  When I request the page directly, the response
I get back from the server is

    HTTP/1.1 302 Found
    Date: Thu, 04 May 2006 18:23:21 GMT
    Server: Apache/1.3.33 (Unix) FrontPage/5.0.2.2634 ApacheJServ/1.1.2 mod_auth_pam/1.1.1
    Location: http://0068952.netsolhost.com/index.php?n=Profiles/PhillipDuncan
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=iso-8859-1
    
    f4
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>302 Found</TITLE>
    </HEAD><BODY>
    <H1>Found</H1>
    The document has moved <A HREF="http://0068952.netsolhost.com/index.php?n=Profiles/PhillipDuncan">here</A>.<P>
    </BODY></HTML>

which seems to indicate that something in Apache is doing the
redirect before PmWiki is ever run.  (PmWiki's redirect messages
look different from the above, which is how I know that Apache
is doing it.)

Pm




More information about the pmwiki-users mailing list