[pmwiki-users] page names with .shtml extension

Radu Luchian radu at monicsoft.net
Wed Nov 26 19:15:31 CST 2008

Actually, what I came up with was a version of the last line of the
.htaccess file we use for clean urls:

# Send requests ending in .shtml to index.php.
RewriteRule ^([A-Z0-9\xa0-\xff].*)\.shtml$           index.php?n=$1  [QSA,L]

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

Thanks Peter,

On Wed, Nov 26, 2008 at 6:27 AM, Peter Bowers <pbowers at pobox.com> wrote:

> On Tue, Nov 18, 2008 at 10:04 PM, Radu Luchian <radu at monicsoft.net> wrote:
> > I've searched both the pmwiki site and the mailing list archive for some
> > hint about allowing .shtml extensions to pages.
> > ...
> > 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?
> I think the rewrite rule is what you are looking for.  Does something
> like this work?
> RewriteRule ^(.*)\.shtml$ $1 [QSA,L]
> That's kind of a shot in the dark in an area I don't play around with
> too much, but it might work.  I've never bothered to look what the
> stuff in the brackets after the search/replace is for, so if that
> doesn't work try just getting rid of the brackets and everything
> inside them.
> -Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20081126/10892a15/attachment.html 

More information about the pmwiki-users mailing list