WikiMatrix

#1 2007-01-01 23:05:10

laredotornado
Member
Registered: 2007-01-01
Posts: 1

Why is URL rewriting failing?

Hi,

I just downloaded PMWiki and installed it on my Linux/Apache server.  I have verified that .htaccess files can override parents and that mod_rewrite is enabled, but URL rewriting is failing.  Specifically, when I visit this page (http://www.mydomain.com/portal/wiki/PmW … SetupTasks) I get a 404.

Here is my local/config.php file:

<?php if (!defined('PmWiki')) exit();
##  This is a sample config.php file.  To use this file, copy it to
##  local/config.php, then edit it for whatever customizations you want.
##  Also, be sure to take a look at http://www.pmichaud.com/wiki/Cookbook
##  for more details on the types of customizations that can be added
##  to PmWiki. 

##  $WikiTitle is the name that appears in the browser's title bar.
$WikiTitle = 'Houghton Wiki';

##  $ScriptUrl is your preferred URL for accessing wiki pages
##  $PubDirUrl is the URL for the pub directory.
$ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].'/portal/wiki';
$PubDirUrl = 'http://'.$_SERVER['HTTP_HOST'].'/portal/wiki/pub';
$UploadDir = realpath($UploadDir = dirname(__FILE__).'/../uploads');

##  If you want to use URLs of the form .../pmwiki.php/Group/PageName
##  instead of .../pmwiki.php?p=Group.PageName, try setting
##  $EnablePathInfo below.  Note that this doesn't work in all environments,
##  it depends on your webserver and PHP configuration.  You might also
##  want to check http://www.pmwiki.org/wiki/Cookbook/CleanUrls more
##  details about this setting and other ways to create nicer-looking urls.
$EnablePathInfo = 1;

## $PageLogoUrl is the URL for a logo image -- you can change this
## to your own logo if you wish.
$PageLogoUrl = "/portal/images/hmlogo.gif";


and here is my .htaccess file:

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


Any ideas?  I have also verified that the path "/webroot/portal/wiki" exists.

Thanks, - Dave

Offline

 

You are not logged in.


Board footer

Forum powered by PunBB (© 2002–2005 Rickard Andersson)