Slava90 Posted March 9, 2015 Share Posted March 9, 2015 (edited) Hello! How to close the Blocklayered module page pagination "/page-" and display all the products page "/show-all" from being indexed by search engines? In which file you need to add the tag <meta name = "robots" content = "noindex, follow" />? Edited March 9, 2015 by Slava90 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted March 10, 2015 Share Posted March 10, 2015 You can't add a meta tag like that, since the pagination links are loaded using AJAX. There are a couple of other things you can try. You can add rel="nofollow" to the pagination links by changing line 2748 (in v2.0.7) of modules/blocklayered/blocklayered.php from: $global_nofollow = false; to: $global_nofollow = true; Alternatively, you can try adding rules to robots.txt to block the pagination links. If you don't already have this file in your root directory, you can generate one by clicking the "Generate robots.txt file" button at the bottom of the Preferences > SEO & URLs tab. You can then manually edit the file and adding rules like the following: Disallow: /*page- Disallow: /*show-all I haven't tested this, so you'll have to test it yourself. I hope it helps. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now