Version 3.0.3.2
I find a problem in duplicating the search pages and indexing them on the Google search engine until there are pages indexed from the old site of Opencart, which are still indexed in Google
i have set the code to prevent indexing
User-agent: *
Disallow: / * & limit
Disallow: / *? Sort
Disallow: / * & sort
Disallow: / *? Route = checkout /
Disallow: / *? Route = account /
Disallow: / *? Route = product / search
Sitemap: https://www.medicalsooq.com/index.php?r ... le_sitemap
Coverage report in Search Console There are numbers for highly indexed pages due to search pages. How can I find a solution to the problem of old and new search pages to prevent them from being indexed on Google and other search engines and to delete their previous indexing.
I have a huge number of indexed pages, all old and duplicate, and search pages
I find a problem in duplicating the search pages and indexing them on the Google search engine until there are pages indexed from the old site of Opencart, which are still indexed in Google
i have set the code to prevent indexing
User-agent: *
Disallow: / * & limit
Disallow: / *? Sort
Disallow: / * & sort
Disallow: / *? Route = checkout /
Disallow: / *? Route = account /
Disallow: / *? Route = product / search
Sitemap: https://www.medicalsooq.com/index.php?r ... le_sitemap
Coverage report in Search Console There are numbers for highly indexed pages due to search pages. How can I find a solution to the problem of old and new search pages to prevent them from being indexed on Google and other search engines and to delete their previous indexing.
I have a huge number of indexed pages, all old and duplicate, and search pages
Use google tools
https://support.google.com/webmasters/answer/9689846?
make sure your sitemap is updated with google
search google for google webmaster tools etc ..
Learn about google
https://search.google.com/search-console/about
https://support.google.com/webmasters/answer/9689846?
make sure your sitemap is updated with google
search google for google webmaster tools etc ..
Learn about google
https://search.google.com/search-console/about
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
search engines do not index search result pages as they do not enter search terms unless ofcourse you advertise search result urls with search terms.
if you do/did that you can simply use:
google will start to complain that your are disallowing pages with robots.txt which are already indexed, just ignore that.
and/or use robots tags and headers:
put this in your header.php controller:
put this in the <head> section of your header.twig view:
robots.txt will tell search engines not to request those urls, tags and headers will tells them what to do with it when they do.
You can request google to remove already indexed pages but only individual ones, if there are a lot, don't bother and let them be removed naturally.
if you do/did that you can simply use:
Code: Select all
User-agent: *
Disallow: /*search=*
and/or use robots tags and headers:
put this in your header.php controller:
Code: Select all
// index and follow meta tags and headers
$data['robots'] = false;
if (isset($this->request->get['search']) ||
isset($this->request->get['order']) ||
isset($this->request->get['sort']) ||
isset($this->request->get['limit']) ||
isset($this->request->get['start'])
) {
header("X-Robots-Tag: noindex, follow", true);
$data['robots'] = '<meta name="robots" content="noindex, follow">';
} elseif (isset($this->request->get['route']) &&
(
stristr($this->request->get['route'],'error')
)
) {
header("X-Robots-Tag: noindex, follow", true);
$data['robots'] = '<meta name="robots" content="noindex, follow">';
} elseif (isset($this->request->get['route']) &&
(
stristr($this->request->get['route'],'checkout/') ||
stristr($this->request->get['route'],'account/')
)
) {
header("X-Robots-Tag: noindex, nofollow", true);
$data['robots'] = '<meta name="robots" content="noindex, nofollow">';
} elseif (isset($this->request->get['route']) &&
(
stristr($this->request->get['route'],'FUTURE_PLACEHOLDER')
)
) {
header("X-Robots-Tag: index, nofollow", true);
$data['robots'] = '<meta name="robots" content="index, nofollow">';
} else {
header("X-Robots-Tag: index, follow", true);
$data['robots'] = '<meta name="robots" content="index, follow">';
}
put this in the <head> section of your header.twig view:
Code: Select all
{% if robots %}
{{ robots }}
{% endif %}
You can request google to remove already indexed pages but only individual ones, if there are a lot, don't bother and let them be removed naturally.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
thank you by mona
thank you letxobnav
letxobnav i will put two options together and I will monitor the indexing and get back to you with the results
To make sure that the code is placed in the required place I put the code in these path :
/public_html/admin/controller/common/header.php
/public_html/admin/view/template/common/header.twig
Is that correct
thank you letxobnav
letxobnav i will put two options together and I will monitor the indexing and get back to you with the results
To make sure that the code is placed in the required place I put the code in these path :
/public_html/admin/controller/common/header.php
/public_html/admin/view/template/common/header.twig
Is that correct