batu544 - 6:43 am on Dec 2, 2011 (gmt 0)
Due to some reason google has indexed two versions of few links from my website. For example
but, both the links point to same content and as per my script both the links are also valid. So, now I am trying to redirect the non-html version of my urls to their respective .html version of urls to avoid duplicate content ( urls) as per google webmaster tool.
I think it can be done by .htaccess but I don't have much idea on .htaccess rules, so not able to get it done.
somehow I wrote one code which is doing exactly the opposite of my requirement.. :(
RewriteRule ^(.*).html$ http://www.my-domain.com/$1 [L,R=301]
Could anyone please let me know what to write in .htaccess file to get it fixed ?