hello
i need little help with url rewriting
i have page :: www.mysite.com/search.php?q=something
desire url structure:: www.mysite.com/q/something
.htaccess code :: RewriteRule q/(.*) search.php?q=$1
the above htaccess code work fine but i have little more htaccess code for my site
.htaccess code :: RewriteRule www.(.*) web.php?url=$1
desire url structure:: www.mysite.com/www.daniweb.com
so now problem is when query is made like www.mysite.com/q/http://www.daniweb.com then parameter http://www.daniweb.com is sent to both htaccess code due to which two php pages mixup in othe another .
so please help so that /q/something is only sent to search.php