Jump to content

Recommended Posts

Posted

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. 

Posted (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 by Hisashi
Posted

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.  

Posted

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.Could contain: Text, Menu

 

Posted
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.  

🙂 

Posted

There is no built in way to achieve this, so have moved this to community support for further discussion 

Posted

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.

Posted
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?

Posted
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/.

Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...