PHP on IIS with Clean URLs

(not on this wiki, but another where I'm also running the kit)

Rewrite Rule(s)

I applied the following to Import mod_Rewrite rules:

# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.
# RewriteBase /~someuser/pmwiki
# 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-Z0-9\xa0-\xff].*)$ pmwiki.php?n=$1  [QSA,L]
NB: RewriteBase is not supported, and must be commented out or deleted.

This is translated to

                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^$" ignoreCase="false" />
                    <action type="Rewrite" url="pmwiki.php" />
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^index\.php$" ignoreCase="false" />
                    <action type="Rewrite" url="pmwiki.php" />
                <rule name="Imported Rule 3" stopProcessing="true">
                    <match url="^([A-Z0-9\xa0-\xff].*)$" ignoreCase="false" />
                    <action type="Rewrite" url="pmwiki.php?n={R:1}" appendQueryString="true" />

I can then get a url of the format http://localhost:83/Blog/2014-07-08 to work, but all links on page are still to http://localhost:83/pmwiki.php/Blog/2014-07-08


To fix this, uncomment and edited the $ScriptUrl assignment line in config.php or site-config.php

$ScriptUrl = 'http://localhost:83';

Page Title Format (skin)

Updated the page-title format in the skin to use the page-header styling from bootstrap

<div id="wikititle" class="page-header">
  <h1>{$Title} <small>[<a href='{$ScriptUrl}/{$Group}'>{$Group}</a>]</small> </h1>

TODO: update in actual skin repo

Installation notes from 2017.01.11

My work machine shredded a hard-drive, and with it my local wiki install.
Starting from scratch on a new image, php did not install automatically with the Web Platform Installer - there was a 404 error.
Notes at suggest a couple of security settings changes I was not aware of, and might make it work.

I installed it manually using notes from and it worked fine.... SO FAR.

I have PmWiki working, but I haven't done any configuration or recovered the old data and files, yet.