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 documentation. Thanks Peter, Radu On Wed, Nov 26, 2008 at 6:27 AM, Peter Bowers <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 10:04 PM, Radu Luchian <[EMAIL PROTECTED]> 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 >
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
