Hi,
Google showing Duplicate Title and description Tags Errors in GWT under HTML Improvements duplicate meta description - 4 and duplicate title tags - 4.
/sign-up.html
/sign-up.html?m
/
/?m
So, I need search engines not to index the ?m parameter at the end of my website url. I guess this is a development issue. In the .htaccess I found the code below that might lead to the m parameter issue on google. Does someone know how to fix it?
#Redirect urls based on a query string parameter
RewriteCond %{QUERY_STRING} ^(.&)?view=mobile([^&])&?(.)?$
RewriteRule ^(.)$ /$1?m%1%3 [CO=is_mobile:1:%{HTTP_HOST},CO=disable_mobile:0:%{HTTP_HOST},L,R]
RewriteCond %{QUERY_STRING} ^m(.&)?view=full([^&])&?(.)?$
RewriteRule ^(.*)$ /$1?%1%3 [CO=disable_mobile:1:%{HTTP_HOST},L,R]
I am also confused because my mobile version is /mobile and not m? so I don’t understand how Google managed to index the m parameter.
Also when I inserted the canonical url on the /mobile version and the alternate url on the desktop version google mobile search delivered the following
www.mysite.com (mobile-friendly)
www.mysite.com/mobile/sign-up.com (mobile-friendly)
but before the changes:
www.mysite.com (mobile-friendly)
www.mysite.com/sign-up.com (mobile-friendly)
So this tells me that google detected the mobile site regardless of the changes I made after. As you can see it says Mobile-Friendly (www.mysite.com/sign-up.com) So if it wasn’t for the ?m parameter I would not have any duplicate content. So how am I to fix this? It is a nightmare.