Ok basically I'm having a small problem on one site that's getting hit with a dupe penalty, because of small minor problems with urls linking to a page. Somehow Google has indexed the original link: http://domain.com/page.php?id=494 Code (markup): and then also has a few other links to the same article, only with a few unnecessary commands added to the url (that don't add anything): http://domain.com/page.php?id=494&randomtag=4994 Code (markup): or http://domain.com/page.php?id=494- Code (markup): Notice in the first case, randomtag=4994 is added and isn't needed, while in the second case - is added to the url - which still loads the same article, but isn't needed and thus is ignored by the script. What can I do to make it so that Google only indexes the original link (page.php?id=494) and that all the other links simply forward (302 redirect) to the main article. I'm guessing htaccess or php guessing, can anyone help?
I wud suggest you, go with 301 redirection in this case. Just do 301 redirect your other two URLs to main one with the help of htaccess file. Use these codes in htaccess file if you have apache server: RewriteEngine on RewriteRule ^page.php?id=494&randomtag=4994$page.php?id=494 [R=301,L] RewriteRule ^page.php?id=494-$page.php?id=494 [R=301,L] I am sure u wud get success..............................
sorry could you explain the code a bit, like why 301 over 302? and the random junk tags are different, does that mean I have to create a similar clause for each statement? If that is so, then it's a pretty big vulnerability with Google since anyone can get a whole bunch of links with junk tags in them on their competitors. Thanks.
301 means you completely redirect your other url to main permanently and Google wud index your main domain not other one. While in 302 it gives attention to both. These are the codes and they change according to your needs. It your intentions are same in each condition then you have to go through with clause otherwise they cud change when your requirements change.............. NO, if you do 301 redirect some pages to main one then Google don't give preference to other and deindex them from it's data and just index your main domain. So you can't make fool google................
what can be done about http://www.domain.com/ http://www.domain.com/index.php Looks like those are also showing up as dupe content, even though it's the same thing. also junk parameters can be added to screw around with Google, I mean something like this: http://www.domain.com/?thisisjunkcode=4545 or http://www.domain.com/index.php?sti<wbr></r>ew=34f In both those cases the only way to really stop it would be to put something in manually to direct it elsewhere, is there any other way? Also I would I go about doing that with htaccess?
Why would you think you are getting dupe penalty for just these minor offenses? A couple links leading to the same content within a page should really affect your google ratings too much, unless you see the effects elsewhere.