Hello. I have a Affiliatestore.
I have a script that checks the referer.
IF it's Google, Yahoo or another search engine, it goes directly to the merchants product page
ELSE if anyone types directly in the URL it goes to the Main page of the Affiliatestore.
What i need is some improvements. I need the script to search for a search query in the referer, if it finds one then it should find a matching product somewhere in the product list. If it finds one it will redirect it to the merchants [url removed, login to view] not it will redirect to the index page.
I'm on a pretty low budget, so i will only be doing this if the bid is low enough.