[pmwiki-users] page names with .shtml extension
radu at monicsoft.net
Mon Nov 24 11:08:00 CST 2008
I'm not sure if my question below made the list :)
Here it is again.
On Tue, Nov 18, 2008 at 2:04 PM, Radu Luchian <radu at monicsoft.net> wrote:
> Hello folks,
> I've searched both the pmwiki site and the mailing list archive for some
> hint about allowing .shtml extensions to pages.
> The wiki is smart enough to redirect requests like
> but if I try
> ... I get an error:
> PmWiki can't process your request
> ?invalid page name
> We are sorry for any inconvenience.
> Return to http://www.pmwiki.org/wiki <http://www.pmwiki.org/wiki>
> Now, I found the place where the wiki fixes the html extension in function
> But short of editing that function and creating a cookbook php file of the
> entire function just to change
> $pagename = preg_replace('!([./][^./]+)\\.html$!', '$1', $pagename);
> $pagename = preg_replace('!([./][^./]+)\\.[s]html$!', '$1', $pagename);
> ...it seems too much.
> Are there other ways to allow requests to .shtml pages to be redirected to
> the actual wiki page?
> Could someone figure out rhe RewriteRule I can use in the .htaccess file
> for the site that would do this at the server level?
> Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users