I'm not sure if my question below made the list :)<br>Here it is again.<br>Thank you,<br>Radu<br><br><div class="gmail_quote">On Tue, Nov 18, 2008 at 2:04 PM, Radu Luchian <span dir="ltr"><<a href="mailto:radu@monicsoft.net">radu@monicsoft.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello folks,<br><br>I've searched both the pmwiki site and the mailing list archive for some hint about allowing .shtml extensions to pages.<br>
<br>The wiki is smart enough to redirect requests like<br><a href="http://www.pmwiki.org/wiki/PmWiki/MailingLists.html" target="_blank">http://www.pmwiki.org/wiki/PmWiki/MailingLists.html</a><br>
to<br><a href="http://www.pmwiki.org/wiki/PmWiki/MailingLists" target="_blank">http://www.pmwiki.org/wiki/PmWiki/MailingLists</a>,<br>but if I try<br><a href="http://www.pmwiki.org/wiki/PmWiki/MailingLists.shtml" target="_blank">http://www.pmwiki.org/wiki/PmWiki/MailingLists.shtml</a><br>
... I get an error:<br><h3>PmWiki can't process your request</h3>
<p>?invalid page name</p>
<p>We are sorry for any inconvenience.</p>
<p><a href="http://www.pmwiki.org/wiki" target="_blank">Return to http://www.pmwiki.org/wiki</a></p><br>Now, I found the place where the wiki fixes the html extension in function ResolvePageName($pagename)<br><br>But short of editing that function and creating a cookbook php file of the entire function just to change <br>
$pagename = preg_replace('!([./][^./]+)\\.html$!', '$1', $pagename);<br>to<br> $pagename = preg_replace('!([./][^./]+)\\.[s]html$!', '$1', $pagename);<br>...it seems too much.<br><br>Are there other ways to allow requests to .shtml pages to be redirected to the actual wiki page?<br>
<br>Could someone figure out rhe RewriteRule I can use in the .htaccess file for the site that would do this at the server level?<br><br>Thank you<br><font color="#888888">Radu<br><br>
</font></blockquote></div><br>