|
ChangePmWikiURL<< PHP Diff Engine | Cookbook-V1 | Wiki Content Sharing >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalAlternate ways to enable use of SolutionTry PmWiki.ChangePmWikiURL tricks first - then try this.
Add the following to RewriteEngine on RewriteBase / RewriteRule ^wiki/([A-Z].*) /path/to/pmwiki/pmwiki.php?pagename=$1 [L,qsappend] RewriteRule ^wiki /path/to/pmwiki/pmwiki.php [L,qsappend] Notice the last Rule just the wiki with no reference to a pagename. Solution without mod_rewriteIf you don't have mod_rewrite, but are allowed to change file informations, you might want to do this: Change the name of pmwiki.php to for example "site" (without the quotes) and write the following lines into your .htaccess: DirectoryIndex site
<Files site>
ForceType application/x-httpd-php
</Files>
Now you have to change your local/local.php (or wherever your configuration is located) to point to your new base URL. It's something like http://your.doma.in/site/(approve links) with URLs for pages like http://your.doma.in/site/Main/HomePage(approve links) Solution using AliasesThis worked for me under OS X and supported file uploads/etc: Add to Alias /wiki/uploads /Library/WebServer/Documents/wiki/uploads Alias /wiki/pub /Library/WebServer/Documents/wiki/pub Alias /wiki /Library/WebServer/Documents/wiki/pmwiki.php (If not on OS X, you can add it to your Edit $ScriptUrl = '/wiki'; $PubDirUrl = '/wiki/pub'; $UploadUrlFmt = '/wiki/uploads'; $EnablePathInfo = 1; Restart Apache:
Discussion
See Also
History
Comments & Bugs
pmwiki-2.2.0-beta68 -- Last modified by {{HaganFox}}
|