Actually, what I came up with was a version of the last line of the .htaccess file we use for clean urls:<br><br># Send requests ending in .shtml to index.php.<br>RewriteRule ^([A-Z0-9\xa0-\xff].*)\.shtml$ index.php?n=$1 [QSA,L]<br>
<br>That does it, but it's still not elegant enough. I'd like to combine that line with the last one, but so far it works. I'll add this version to the documentation.<br><br>Thanks Peter,<br>Radu<br><br><div class="gmail_quote">
On Wed, Nov 26, 2008 at 6:27 AM, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</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;">
<div class="Ih2E3d">On Tue, Nov 18, 2008 at 10:04 PM, Radu Luchian <<a href="mailto:radu@monicsoft.net">radu@monicsoft.net</a>> wrote:<br>
> I've searched both the pmwiki site and the mailing list archive for some<br>
> hint about allowing .shtml extensions to pages.<br>
</div>> ...<br>
<div class="Ih2E3d">> Are there other ways to allow requests to .shtml pages to be redirected to<br>
> the actual wiki page?<br>
><br>
> Could someone figure out rhe RewriteRule I can use in the .htaccess file for<br>
> the site that would do this at the server level?<br>
<br>
</div>I think the rewrite rule is what you are looking for. Does something<br>
like this work?<br>
<br>
RewriteRule ^(.*)\.shtml$ $1 [QSA,L]<br>
<br>
That's kind of a shot in the dark in an area I don't play around with<br>
too much, but it might work. I've never bothered to look what the<br>
stuff in the brackets after the search/replace is for, so if that<br>
doesn't work try just getting rid of the brackets and everything<br>
inside them.<br>
<font color="#888888"><br>
-Peter<br>
</font></blockquote></div><br>