[pmwiki-users] page names with .shtml extension

Radu Luchian 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.
Thank you,
Radu

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
> http://www.pmwiki.org/wiki/PmWiki/MailingLists.html
> to
> http://www.pmwiki.org/wiki/PmWiki/MailingLists,
> but if I try
> http://www.pmwiki.org/wiki/PmWiki/MailingLists.shtml
> ... 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
> ResolvePageName($pagename)
>
> 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);
> to
>   $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
> Radu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20081124/bebed451/attachment.html 


More information about the pmwiki-users mailing list