[pmwiki-users] Real Clean URLs

Steffen Bauch steffen.bauch at datenkobold.de
Mon Sep 19 11:03:53 CDT 2005

Patrick R. Michaud wrote:

>On Mon, Sep 19, 2005 at 04:13:41PM +0200, Steffen Bauch wrote:
>>How can I modify PmWiki to append ".html" to the URLs that are 
>>generated inside the pages?
>There's not yet a good way to do this -- the problem is that
>PmWiki has to know where to place the ".html" when only a
>partial url is being generated.  It has to do with the way
>that $ScriptUrl and $PageUrl substitutions take place (which
>is already a little "special" because of $EnablePathInfo
Can you explain what you mean with "partial url"?
How would a quick modification (hack) look like?
$EnablePathInfo is 1 in my installation and I would like to use this

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^/?$ http://www.datenkobold.de/wiki/Main/HomePage
RewriteRule ^([^/a-z].*) pmwiki.php?n=$1 [QSA,L]

>All that said, I'm working on creating a way to have a set of
>PmWiki pages available as though they are ".html" files (I need
>it for another project of mine) -- it's just coming along a bit
>A question:  For things like ?action=edit, ?action=search, etc.,
>should the ".html" still be in the url or should it be omitted?
I think it should stay in the URL. The main purpose for this format is
to make search engines and users happy.
In my special case pmwiki is used as a simple CMS and ?action=edit,
?action=search links aren't visible to the user because they aren't
included in the skin template. So it is possible to hide special actions
from the user or crawler.


Steffen Bauch | http://www.datenkobold.de | GPG: 0x5378EC94

More information about the pmwiki-users mailing list