i am looking for someone to me help me correct my mistake. i made a script in php which checks all the incoming traffic for certain parameters and then decides if it has to redirect the traffic to the offer page or my normal site. in htaccess i made all the traffic to pass through to the script. now the issue is, the traffic which redirects to CPA offer is all good and working as required but the one that has not passed the tests and should be sent to normal site is stuck in a loop. the script send the traffic to normal site but htaccess again sends it to the script and this loop keeps on going. Code: RewriteRule (.*)$ xxx/script.php?a=$1 can someone please help me write a condition for this rule to execute. or any other suggestion to help me sort this out.