2011-07-31, 20:57:36
A user notified me of a problem he's got with News Manager's URLs when using a certain permalink structure. I've encountered the same behaviour on a new site. A structure such as
does not work with NM's rewrite rules. NM seems to expect the standard
so the URLs to invidual posts don't work. Can someone mod_rewrite-savvy help us out? Putting a / at the end of the first permalink structure makes the blog posts work, but obviously adds a / to every page, e.g. www.domain.tld/links.html/.
NM'S default rewrite rules:
Any help is appreciated.
Code:
%parent%/%slug%.html
does not work with NM's rewrite rules. NM seems to expect the standard
Code:
%parent%/%slug%/
so the URLs to invidual posts don't work. Can someone mod_rewrite-savvy help us out? Putting a / at the end of the first permalink structure makes the blog posts work, but obviously adds a / to every page, e.g. www.domain.tld/links.html/.
NM'S default rewrite rules:
Code:
# Newsmanager
RewriteRule ^blog/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^blog/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^blog/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^blog/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]
Any help is appreciated.