[pmwiki-users] Clean URL [again]

pmwiki at 911networks.com pmwiki at 911networks.com
Thu Dec 7 09:44:05 CST 2006


On Thu, 07 Dec 2006 11:30:10 +0100
Anno <anno at shroomery.org> wrote:

> http://www.pmwiki.org/wiki/Cookbook/CleanUrls#URL_rewriting

Obviously I don't understand it:

1. This is running on an intranet

==================================================

2. .htaccess [apache 2.0]

# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# The rewrite base will be the document root.
RewriteBase /
# Send requests without parameters to pmwiki.php.
RewriteRule ^$           index.php  [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([^/a-z].*) index.php?n=$1  [QSA,L]

# Don't rewrite requests for any files, directories, or symbolic
# links (shortcuts) that exist on the filesystem.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

========================================

3. local/config.php

$ScriptUrl = "http://www.kbinfo.abc";

kbinfo.abc is mapped in /etc/hosts [for linux] and hosts [for MS] to
172.31.2.19

It works on the home page, but all the other links give:

404 not found: Not Found

The requested URL /Site/Tomorrow was not found on this server.

=====================================

4. The directory structure is:

total 108K
drwxr-s---  2 www www 4.0K Nov 26 13:29 cookbook
drwxr-s---  2 www www 4.0K Nov 10 09:20 docs
-rw-r-----  1 www www   29 Nov 14 11:36 index.php
drwxr-s---  2 www www 4.0K Dec  7 07:37 local
-rwxr-x--x  1 www www  69K Nov  4 07:43 pmwiki.php
drwxr-s---  6 www www 4.0K Nov 21 18:34 pub
drwxr-s---  2 www www 4.0K Nov 10 09:20 scripts
drwxr-s---  2 www www 4.0K Dec  6 18:56 wiki.d
drwxr-s---  2 www www 4.0K Nov 10 09:20 wikilib.d

which is in the root the virtual host. 

Any suggestion?

-- 
Thanks
http://www.sqlhacks.com
The SQL knowledge base




More information about the pmwiki-users mailing list