[wp-hackers] URL Re-writes for WP 'Pages' or Multiple Permalink
borgar at undraland.com
Wed Aug 23 14:33:39 GMT 2006
Set the permalinks to the wanted url omitting the .html.
With a plugin that filters on the_permalink (post_link?), and
rewrite_rules. Add a rewrite rule that strips ".html" endings silently
so both urls are valid. Something like "RewriteRule ^/(.*?).html?$ /$1
[PT]" (untested) should do this.
Then have the "the_permalink" filter append ".html" if needed.
More information about the wp-hackers