Forum Moderators: phranque
I develop a site where can be this "rewrited" url
http://www.example.com/cat/subcat/
http://www.example.com/cat/subcat/group/
http://www.example.com/cat/subcat/content.html
http://www.example.com/cat/subcat/group/content.html
I have a .htaccess with
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)(\.html)?$ constructor.php?name=$1&e=$2 [QSA,L]
But I need better any rules and condition
1. If cat exist DO NOT check subcat and other..
Now If cat exist but subcat not exist url is rewrite to constructor.php instead is any of "level" of url exist rewrite must be stopped
2. If not present .html any /cat/subcat MUST be rewrite to /cat/subcat/
Thanks for any help / suggest
[edited by: jdMorgan at 8:06 pm (utc) on July 15, 2008]
[edit reason] Please use example.com [/edit]