Pretty URLs and excludeprefix page aliases
Posted: Tue Apr 13, 2010 9:12 pm
I've been writing a site with a dual menu system, which uses the 'excludeprefix' tag {menu excludeprefix='left'} to sort the pages into their appropriate menus. This is totally fine until I enable pretty URLs, and then I get something like this:
http://mysite.com/top-plan-visit/top-school.html
This is not really terrible, but I'd love if someone can point me to a rewrite rule which can strip out those prefixes. I'd like to remove "top-" and "left-"
Right now, my rewrite rules look like this:
I know this is different from what is given in the example .htaccess.txt and in the doc, but this is the only configuration that seems to work on my host.
Thanks if anyone has a suggestion.
http://mysite.com/top-plan-visit/top-school.html
This is not really terrible, but I'd love if someone can point me to a rewrite rule which can strip out those prefixes. I'd like to remove "top-" and "left-"
Right now, my rewrite rules look like this:
Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Thanks if anyone has a suggestion.