This is for people who want to use DokuWiki on a Windows machine with IIS webserver (Windows 2000, Windows XP or Windows Server 2003, 2008)
(Just install and leave the setting 'download and install FastCGI' and it will auto-detect fast-cgi on your System)
wincache.fcenabled
to 0
in php.ini
.dokuwiki-YYYY-MM-DD
directory to dokuwiki
(or whatever else you like) and move it to:c:\inetpub\wwwroot\dokuwiki
dokuwiki/
directory and Check the properties of the data/
folder. Ensure that the Internet Guest Account (IUSR_computername) or the appropriate web server account (or web server group like IIS_WPG) has Folder level “Write” permissions to the data/
folder. NOTES
conf/local.php
file. conf/local.php
file.dokuwiki-YYYY-MM-DD
directory to dokuwiki
(or whatever else you like) and move it to:D:\dokuwiki
). This is for security and to mitigate the chance of a disk full condition on this drive.c:\inetpub\wwwroot\dokuwiki
)dokuwiki/
directory and Check the properties of the data/
folder. Ensure that the Internet Guest Account(IUSR), the appropriate web server account or Server Group(IIS_IUSRS) has Folder level “Write” permissions to the data/
folder. See above for instructions.dokuwiki/
directory and ensure that the Internet Guest Account(IUSR), the appropriate web server account or Server Group(IIS_IUSRS) has Folder level “Write” permissions to the conf/
folder. See above for instructions.conf/
lib/plugins
(if you don't do this, you will see the warning message in the Extension Manager)dokuwiki/
directory and delete the install.php file.Enable url rewriting and insert appropriate set of rules:
<rewrite> <rules> <rule name="rule 1C" stopProcessing="true"> <match url="^_media/(.*)" /> <action type="Rewrite" url="/lib/exe/fetch.php?media={R:1}" appendQueryString="true" /> </rule> <rule name="rule 2C" stopProcessing="true"> <match url="^_detail/(.*)" /> <action type="Rewrite" url="/lib/exe/detail.php?media={R:1}" appendQueryString="true" /> </rule> <rule name="rule 3C" stopProcessing="true"> <match url="^_export/([^/]+)/(.*)" /> <action type="Rewrite" url="/doku.php?do=export_{R:1}&id={R:2}" appendQueryString="true" /> </rule> <rule name="rule 4C" stopProcessing="true"> <match url="^$" /> <action type="Rewrite" url="/doku.php" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> </rule> <rule name="rule 5C" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="/doku.php?id={R:1}" appendQueryString="true" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> </rule> <rule name="rule 6C"> <match url="^index.php$" /> <action type="Rewrite" url="/doku.php" /> </rule> </rules> </rewrite>
If you are using Azure Web App, just put these lines under the <system.webServer> tags in web.config file (situated in wwwroot of your App).
IIS 7.0 and above can be extended with a the URL Rewrite module 2.0 available from Microsoft for both x86 and x64
Save the Apache rules above to a .htaccess file removing the “RewriteBase /dokuwiki” line. This will not be required as we will be adding the rules directly to the root of the wiki.
In IIS Manager select your Wiki folder, and under IIS select “URL Rewrite” (if you had Manager open before installing, a refresh will be required)
In the actions pane on the right hand side, choose “Import Rules”
For your configuration file, select the .htaccess file and Import, this should give you 6 converted rules.
Finally hit Apply in the Actions panel on the right hand side.
Configure your Wiki to use .htaccess rules for rewrite and you should now be seeing your URLs rewritten.