Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- John Ryan
September 30, 2003, 7:30 pm
rate this thread
link is tracked. eg.
they link to: http://www.mysite.com/links/in/3
the last number is their link id. so they all link like that and i
track it with php and url rewriting. but the problem is, google thinks
the main page of the site is at http://www.ring-tones.us/links /
When you search for 'www.ring-tones.us',
http://www./ring-tones.us/links/ comes up first. How will I get Google
to know www.ring-tones.us is the real home?
You are using the meta tag "refresh" for "url rewriting". I don't know
enough PHP to say (ASP is my preference), but presumably there is some kind
of server side redirect you can perform that would fix this problem
Can wait and somebody else will probably post the answer here, or try
searching google for something akin to "PHP redirect"
- Justin Koivisto
September 30, 2003, 8:26 pm
I don't think the problem is where the page resolves to, but the fact
that the URL recorded at Google is /links/ when that isn't what is
Off hand, I really don't know how you'd go about this other than to
change your referrer tracking to actually use GET variables:
That way Google will see that http://www.ring-tones.us/ is the actual
site, and should simply ignore the query string. However, I do not know
how Google considers query strings when linking between sites.
(There is rumor in alt.www.webmaster however that Google does not like
"id=" in the query string.)
Justin Koivisto - email@example.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Oops, before I sent that last email off, I was going to say:
The way you are doing this works, but its kind of clunky and can lead to
problems like the one you have encountered.
What you maybe should have done was have everybody refer/link to your
www.ring-tones.us/index.php page... and then each gets a unique identifier
to append to the URL... something like ?ref=12345
(so they would link to your site as: www.ring-tones.us/index.php?ref=12345
and so on)
Then at the start of your index.php page you check if the querystring has
anything in it... if it does then you update your database (or whatever
function you perform now) and then the page loads as normal.... if there is
nothing in the querystring, then the page just loads as normal.
- Justin Koivisto
September 30, 2003, 8:28 pm