Duplicate content google webmasters tools
-
This post is deleted! -
Hey Polyniki
Both of the URLs above resolve to the same content and there is no redirection on the URL. I checked the first one in a browser and using WebBug to see the http headers and sure enough, both resolve and give a HTTP 200 OK status response.
So, the answer here is that your rewrite from page A to page B is not working.
I wrote an article about adding rules to Joomla! htaccess many moons ago, that should help:
http://www.bowlerhatsolutions.co.uk/articles/64-web-design/166-add-rewrite-rules-to-joomla.htmlIf you get stuck though, shout, I have wrestled with this kind of thing in Joomla a bunch of times so should be able to help.
Cheers
Marcus -
Dear Marcus,
thanks a lot for the info! Can you please write me an example of the code I should add to htaccess for these particular two links that I have written above? I will try that out to see if it works
Would that be
rewriterule ^/free-games-online/item/187-fishdom-2-free-online-game-playrix.html$ /online-games/item/187-fishdom-2-free-online-game-playrix.html [R=301,L]
without the http://www.freegamesonline.gr in front?
-
Yep, that should do it. Possibly don't need the leading slash '^**/**free' bcomes '^free' but depends on your setup and whether you have rewrite base set. Should not matter to be fair but...
Is this what you have in place at the moment and it is not working?
This is a great free little tool for checking your HTTP headers to make sure your rewrites are working: http://www.cyberspyder.com/webbug.html
-
I put the code in the htaccess and it doesn't work. The program you suggested I believe says that the page I am trying to redirect is not found? Please help me, I am really desperate.
padding:5px 0 10px 15px; margin:0; } #body-content p { padding-left: 25px; padding-right: 25px; line-height: 18px; padding-top: 5px; padding-bottom: 5px; } h2 { font-size: 14px; font-weight: bold; color: #FF9900; padding-left: 15px; }
# 404 Not Found The server can not find the requested page:
(none)/free-games-online/item/187-fishdom-2-free-online-game-playrix.html (port 80)
Please forward this error screen to host2.chiefhosters.com's [](mailto:admin@webpanel.gr?subject=Error message [404] 404 Not Found for (none)/free-games-online/item/187-fishdom-2-free-online-game-playrix.html port 80 on Friday, 14-Oct-2011 13:41:06 EEST)[ WebMaster](mailto:admin@webpanel.gr?subject=Error message [404] 404 Not Found for (none)/free-games-online/item/187-fishdom-2-free-online-game-playrix.html port 80 on Friday, 14-Oct-2011 13:41:06 EEST). * * *
What I have right now is another trick, I went in cpanel / file manager / public html and created folders and items for these links (eg 184-test-game2.html) and in the items I wrote the code (this is an example)
thinking it would create a permanent redirect, like the guy who crreated the site advised me to. When I tried to do that in cpanel in the redirects option, it didnt work and the technician of my hosting company could not figute out why, sait it is for parked domains and not pages of my website that redirect to other pages of my website.
I am really desperate, I cant get rid of the duplicate content.
Trying to redirect freegamesonline.gr to www.freegamesonline.gr failed as well
-
Where you put this rule is important in the joomla htaccess as the 'L' in the [301,L] indicates the last rule. If another Last rule is triggered earlier then your rule will never be seen.
Hey, can you post your htaccess file?
-
Actually I experimented a lot with the htaccess file and I managed to do it, the problem was indeed WHERE I placed those redirections. Thanks a lot for your help!