Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Randy Calvert Posted July 6, 2022 Posted July 6, 2022 Why would you want Google trying to cache random search queries? There is no real “content” on those pages and causes your crawl budget to be spent on pages without real value. You would be intentionally hurting your SEO.
Hisashi Posted July 6, 2022 Author Posted July 6, 2022 (edited) I need to do some indexing tests based on */tags/*, so I need to remove this code to block other terms manually in robots.txt. Edited July 6, 2022 by Hisashi
Randy Calvert Posted July 6, 2022 Posted July 6, 2022 robots.txt is not controlling the code above. It simply generates yourdomain.com/robots.txt If you want to control the robots.txt directives.... ACP > System > Site Promotion > Search Engine Optimization Click on Crawl Management and you can create your own robots.txt instead of using the one generated by IPS automatically. If you're trying to edit your raw HTML code on the page... ACP > Customization > Appearance > Themes. All HTML related related to IPB is found there. You would just need to find specifically where that section of code is called from based on what page is generating it and edit it. Given that it's a meta tag, I might begin by looking in the IncludeMeta spot, but it could be coming from somewhere else. This sort of change is not directly supported by IPS, so they're going to tell you this is outside of what they can provide support for.
Hisashi Posted July 6, 2022 Author Posted July 6, 2022 It's not about robots.txt, I can adjust it easily. What I'm not getting is to find this "noindex" code in search related templates.
Randy Calvert Posted July 6, 2022 Posted July 6, 2022 12 minutes ago, Randy Calvert said: If you're trying to edit your raw HTML code on the page... ACP > Customization > Appearance > Themes. All HTML related related to IPB is found there. You would just need to find specifically where that section of code is called from based on what page is generating it and edit it. Given that it's a meta tag, I might begin by looking in the IncludeMeta spot, but it could be coming from somewhere else. 🙂
Randy Calvert Posted July 6, 2022 Posted July 6, 2022 The master container is globalTemplate. I would start there... follow the other templates it refers to until you find what you're looking for.
Marc Posted July 6, 2022 Posted July 6, 2022 There is no built in way to achieve this, so have moved this to community support for further discussion
teraßyte Posted July 6, 2022 Posted July 6, 2022 Yeah, that meta tag is set directly from the PHP backend: \IPS\Output::i()->metaTags['robots'] = 'noindex'; // Tell search engines not to index search pages It's easy enough making a plugin to remove it from specific pages though. Hisashi 1
Hisashi Posted July 6, 2022 Author Posted July 6, 2022 46 minutes ago, teraßyte said: Yeah, that meta tag is set directly from the PHP backend: \IPS\Output::i()->metaTags['robots'] = 'noindex'; // Tell search engines not to index search pages It's easy enough making a plugin to remove it from specific pages though. What directory can I edit this file?
teraßyte Posted July 6, 2022 Posted July 6, 2022 1 hour ago, Hisashi said: What directory can I edit this file? There's a single instance of it on line 71 in \applications\core\modules\front\search\search.php. You can't just comment out the line though, otherwise you'll remove the meta tag for ALL search pages, not just /tags/. Hisashi 1
Hisashi Posted July 7, 2022 Author Posted July 7, 2022 20 hours ago, teraßyte said: There's a single instance of it on line 71 in \applications\core\modules\front\search\search.php. You can't just comment out the line though, otherwise you'll remove the meta tag for ALL search pages, not just /tags/. Thanks for observation.
Recommended Posts