Hi, I have an interesting problem. What I need is if the user at my site enter www.mysite/somename then it should first redirect to www.mysite/type1/type1.php?name=somename. Now if there is no record with name=somename then it should check for second type and redirect to www.mysite/type2/type2.php?name=somename. Now if still there is no record of type2 with name=somename then it should redirect to 404 page.
How can I achieve this. Can RewriteCond should be used? Please help.
Thanks
Junaid