Forum Moderators: phranque
I need some .htaccess help to remove duplicate pages that are appearing on bing.com. I am seeing my site listed in the serps as [mysite.com...] and even [mysite.com...]
I think it is caused by people linking to me using spaces in the url after the / but not completely sure.
Does anyone know the correct .htaccess code to redirect this sort of thing back to just mysite.com/ without the extra ?NF=1 added on to the end? It is only happening to the main index page as well. My site is not dynamic or anything so my .htaccess is quite empty except for the removal of the www from the url using this...
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mysite\.com [NC]
RewriteRule ^(.*)$ [mysite.com...] [L,R=301]
If anyone knows a quick (cut and paste) solution that would be great.
If you have specific questions after reviewing those threads and testing your code, please post them back here.
Our Forum Charter [webmasterworld.com] provides links to useful resources, and information about how to get the most from this forum.
Jim