I’m trying to layout my site’s urls where I have a certain group of specific urls AND the rest can be anything. For example:
I want to rewrite admin and list to go to a specific cgi and joe and lisa to go to another one. What I have that doesn’t work:
RewriteRule ^(admin|list)$ /cgi-bin/main.cgi?$1
RewriteRule ^(.+)$ /cgi-bin/special.cgi?$1
From the error logs, I think it’s looping around, matching admin, list, joe and lisa on both rewrite rules.
I’ve looked through a half dozen docs on rewrite but can’t find anything like this. Can anyone point me to a specific example of how to handle this?