The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
301 redirects instead of 302 redirects for better SEO
Hello,
I am tracking clicks to the various links (external or internal) in my website as follows: http://www.mysitename.com/clicksout....ersitename.com - outgoing links http://www.mysitename.com/clicksin.p...ersitename.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. |
#2
|
||||
|
||||
PHP Code:
|
#3
|
||||
|
||||
You can set the header and response code in one header() call. And be sure to end the script right after this as well
PHP Code:
|
#4
|
|||
|
|||
Hello Analogpoint and Dismounted,
Thank you for your inputs on the 301 redirects. I change my redirects from 302 to 301 and it helped. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|