Jump to content

Send to a Friend Caused Duplicate Meta Descriptions


LovePrestashop
 Share

Recommended Posts

Dear Friends,

 

I have checked my google web master tool and I saw lots of duplicated meta description and titles. E.g.

 

/laptops/6-macbook.html

/modules/sendtoafriend/sendtoafriend-form.php?id_product=6

 

Sure it was caused by "send to a Friend" module. You may say why don't you use rebots.txt to disable access? Yes, I did that, I have "Disallow: /modules/" in my rebots.txt file which was generated by prestashop.

 

My Question is should I uninstall the 'send to a friend' module as it produces the duplicated title and meta description?

 

Thanks

Share this post


Link to post
Share on other sites

  • 4 months later...

I've just noticed these pages appearing in google also, even though I have the prestashop robots.txt which disallows the entire /modules directory. Anyone know how to prevent google from crawling these pages?

Share this post


Link to post
Share on other sites

My Question is should I uninstall the 'send to a friend' module as it produces the duplicated title and meta description?

 

No, remove the module is not necessarily enough to block in robots. Changes in the indexing of your site do not occur instantly, after a while Google will remove from the index page of the module

 

 

I have the prestashop robots.txt which disallows the entire /modules directory.

 

you have made changes in robots.txt - before indexation of module pages by Google or after?

Share this post


Link to post
Share on other sites

I had the same problem its is a small fix edit your file: /modules/sendtoafriend/sendtoafriend.php

 

 

public function displayPageForm()

public function displayPageForm()
{
	if (!$this->active)
		{Tools::display404Error();}

	global $smarty;
	$smarty->assign(array('nobots' => true));
	include(dirname(__FILE__).'/../../header.php');
	echo $this->displayFrontForm();
	include(dirname(__FILE__).'/../../footer.php');
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More