mehh

msg:3564837 | 5:14 pm on Feb 2, 2008 (gmt 0) |
if you are using an apache webserver .htaccess may be a better answer [google.com]. But I don't understand, not that it is any of my bussiness, why are the extra visitors a problem?
|
RedTCat

msg:3564857 | 6:11 pm on Feb 2, 2008 (gmt 0) |
Thanks but htaccess is going to be too technical for me ... As they don't *want* to visit my site, they're just unlucky enough to click a link that's nothing to do with the site they are on, nor the text in the link itself. (and they are skewing my stats) I've had abusive emails from people thinking *I'm* responsible...
|
mehh

msg:3565211 | 1:28 pm on Feb 3, 2008 (gmt 0) |
fair enough. javascript is a poor option for this though as some people will be veiwing the web without it. Thats why I recommended .htaccess. I suppose you could use javascript if you *really* wanted to though. something like thisif((/^https?\:\/\/(www\.)?example\.com/).test(document.referrer)){ location.href="anotherpage.html"; }
|
rocknbil

msg:3565270 | 4:12 pm on Feb 3, 2008 (gmt 0) |
| The links are only and always to the same page on my site |
| A greater problem here is how this will affect the PR for your incoming links. JS won't help that, SE's will still get a 404. .htaccess is no more complicated than Javascript, but there's an easier solution - why don't you just create a variation of the page with a link to "original article?" You want it to be a variation so you don't get a duplicate content problem.
|
RedTCat

msg:3565342 | 7:01 pm on Feb 3, 2008 (gmt 0) |
Thanks mehh and rocknbil, Not too fussed about some people not using JS seeing the normal page - but most would get redirected. Unfortuntely the page in question is the site home page... They won't get a 404 'cos the page does exist... I had not thought about page rank, I am using Google Webmaster Tools and have not yet seen the link text in the "What Googlebot sees" statstics. I've now implimentd a bit of JS simialr to that suggested by mehh, which gives people from *that* domain a polite but clear message that they've been "mis-directed" Thanks LG
|
|