Can someone help me as google is counting a poll page as a duplicate page http://www.domain.com/folder/page1.html?action=results&poll_ident=4 http://www.domain.com/folder/page1.html http://www.domain.com/folder/page2.html?action=results&poll_ident=4 http://www.domain.com/folder/page2.html I dont even have the poll on my site anymore so I am really confused how google follows it???? How can I just permanent redirect the dynamic page to the normal static page? and do I have to do it for all thes pages or is there a command that would encompass anything with ?action=results&poll_ident=4 and redirect to the index.html thanks
Hi, No I used to have a poll on my pages but when you try to see the results it reloads the page with very little change (only the poll results) I got concerned this would be viewed as a duplicate page so removed it. Now 3 months later it still gets indexed by google and I dont get why but it is now a duplicate page. ******.html?action=results&poll_ident=4 I would like to 301 redirect anypage with ?action=results&poll_ident=4 back to the .html page and so probably halve the number of indexed pages and so remove duplicate content. Any redirect, htaccess help on this?
Sorry, I missed 'anymore' as 'never', english is not my native language. As about Google, you can call any static blablabla.html page with any parameters you can imagine, the result will be the same if you don't use any parameters inside. So Google tries to follow old links and get a good results, why to delete them? If you really think duplicates are bad, you need 'removed permanently' redirection for this calls.
yes, I need to know how to permanently redirect these dynamic pages which are just duplicates of my static html pages. So any page with ?action=results&poll_ident=4 (there is no longer a link to them but google still calls tham and indexes them?) is permanently redirected to its .html page. I need to set up a command in the .htaccess that redirects all 'poll' pages to its actual page. domain.com/folder/page1.html?action=results&poll_ident=4 domain.com/folder/page1.html Any help?
Does each poll have it's own page#.html file, or is the poll_ident=4 part the only part that changes?
Hi, Yea what I had was a poll in my footer which was a php include. So most .html pages had this extra placed on it only when the link to the poll results was wanted. Of course the enginers crawl it and they never forget! So now there is no poll and no link to follow but I see google robot still calls it and records it as crawled. So it is an exact duplicate to the .html page but with the stuff at the end I am hoping to mod my .htaccess to say if anything with this script is called 301 redirect to the .html only version. Is that clear or do you want to see the site?
If it's from domain.com/folder/page1.html?action=results&poll_ident=4 to domain.com/folder/page1.html with the 1 being what changes... Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^folder/page([^.]+).html?action=results&poll_ident=4$ http://www.domain.com/folder/page$1.html [R=301,L] if the 4 in the URL changes and isn't in the new URL, change the 4 to ([^.]+).
great, this is on track. what if the whole page.html changes not just the 1 part of page1 like story.html article.html sales.html all getting the same poll additive. and what if its also different folder names? because this situation is across all pages across all folders.. none is main directory but all in one subfolder deep.
You would need a line for every single URL. RewriteRule ^folder/ANYTHING.html?action=results&poll_ident=4$ http://www.domain.com/folder/pageNUMBER.html [R=301,L] For folders... RewriteRule ^([^.]+)/page([^.]+).html?action=results&poll_ident=4$ http://www.domain.com/$1/page$2.html [R=301,L]
Ihave this URL http://www.bedandbreakfasts.ws/sports.html?categoryid=1&productid=10 I want it will be like http://www.bedandbreakfasts.ws/sports-categoryid-1-productid-10.htm I used following code on .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule sports-categoryid-(.*)-productid-(.*)\.htm$ sports.html?categoryid=$1&productid=$2 but no change refletc in URL Is some thing wrong in code..
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^sports\-categoryid\-([^.]+)\-productid\-([^.]+)\.html$ sports.html?categoryid=$1&productid=$2 [L]
thanks Nintendo,, I changed that code as per you advice ,, but the problem is not solved.. I am trying to findout the solution,, If you have any other suggestion, please advice
Just to test it out, try Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^bed_and_breakfast.php$ find_a_bed_and_breakfast.php [L] and then see if http://www.bedandbreakfastsofamerica.com/bed_and_breakfast.php shows the correct page for find_a_bed_and_breakfast.php.