1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need help with htaccess coding

Discussion in 'BlackHat Lounge' started by tas26, Nov 10, 2013.

  1. tas26

    tas26 Jr. VIP Jr. VIP

    Apr 21, 2009
    Likes Received:
    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.

    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.