induslady
10-09-2007, 03:45 AM
Hello,
I am tracking clicks to the various links (external or internal) in my website as follows:
http://www.mysitename.com/clicksout.php?url=http://www.othersitename.com - outgoing links
http://www.mysitename.com/clicksin.php?url=http://www.othersitename.com - incoming links
In the clicksin.php & clicksout.php, I have used the below php function to track the URL and to store the clicks and the url details in a table for reporting
header("Location: http://www.example.com/");
I was told that the above tracking links are 302 redirects which is bad for SEO.
Please can someone let me know how I can use 301 redirects in place of it?
Basically I want to capture the clicks on ougoing links and clicks on incoming links.
Appreciate help in this regard. Thanks.
I am tracking clicks to the various links (external or internal) in my website as follows:
http://www.mysitename.com/clicksout.php?url=http://www.othersitename.com - outgoing links
http://www.mysitename.com/clicksin.php?url=http://www.othersitename.com - incoming links
In the clicksin.php & clicksout.php, I have used the below php function to track the URL and to store the clicks and the url details in a table for reporting
header("Location: http://www.example.com/");
I was told that the above tracking links are 302 redirects which is bad for SEO.
Please can someone let me know how I can use 301 redirects in place of it?
Basically I want to capture the clicks on ougoing links and clicks on incoming links.
Appreciate help in this regard. Thanks.