[Pmwiki-users]simple URI for pmwiki - Apache

Patrick Ogay lists
Tue Jun 1 09:50:44 CDT 2004


 > Without '.php' it would be even better, if I am not mistaken that is
 > possible? Many sites are (pm)wiki-only.

apache configurationfile or  .htaccess 
"wiki" is assumed as a php script
<Files wiki>
SetHandler application/x-httpd-php
</Files>

works with may providers:  www.blug.ch/wiki/

>Now if only the pmwiki default install would allow me to place the
>pmwiki.php alongside the index.htm and it be named 'to.php' instead...

You can rename pmwiki.php to index.php   (often index.html index.shtml, 
index.cgi, index.php  ist definded)
then you can forward your index.php to pmwiki.  I use:
index.php
<?php header("Location:http://www.blug.ch/wiki/" ); ?>
wiki points to the recent wiki installation 
<?php chdir("./pmwiki-0.6.18"); include ("pmwiki.php"); ?>

Pathinfo and querystring are propagated so it works usually.
(you also could configure apache to use pmwiki.php instead of index.php 
as starting  site, or make php-resolution  in .html)
With Apache everyting is possible.

---------------------------------------------
I'd like to simplify more, to use
www.blug.ch/wiki/AnyGroup/AnyPage
to
www.blug.ch/KnownGroup/GroupPage    Result shoud be:   
www.blug.ch/Linux/HomePage  

With rewrites it should be possible, but I'm not a .htaccess programmer :-)
----------------------------------------------

regards
pog



More information about the pmwiki-users mailing list