I've got mod_rewite working great, but there's one little kink that I'm having trouble figuring out.
Here's my nice URL:
http://domain.com/news/local/crime/
Here's my .htaccess:
RewriteEngine on
RewriteRule ^(.*)\/(.*)\/(.*)\/$ ?level1=$1&level2=$2&level3=$3
And it calls the page using:
http://domain.com?level1=news&level2=local&level3=crime
All hunky-dory, right. But what if I also want to kick out content higher up the "directory" structure? I've got a "news" homepage, a "local news" homepage, and a "local crime news" homepage.
http://domain.com?level1=news
[url]http://domain.com?level1=news[/url]$level2=local
[url]http://domain.com?level1=news[/url]$level2=local&level3=crime
With the Rewrite rule above, I get 404 errors with
http://domain.com/news/ or [url]http://domain.com/news/local/[/url]
Make sense?