Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
July 6, 20222 yr Community Expert 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.
July 6, 20222 yr Author 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, 20222 yr by Hisashi
July 6, 20222 yr Community Expert 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.
July 6, 20222 yr Author 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.
July 6, 20222 yr Community Expert 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. 🙂
July 6, 20222 yr Community Expert The master container is globalTemplate. I would start there... follow the other templates it refers to until you find what you're looking for.
July 6, 20222 yr Community Expert There is no built in way to achieve this, so have moved this to community support for further discussion
July 6, 20222 yr Community Expert 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.
July 6, 20222 yr Author 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?
July 6, 20222 yr Community Expert 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/.
July 7, 20222 yr Author 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.