• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Marketing that's efficient and human? That's Loop Marketing.

    Explore HubSpot Academy's 39-video playlist and put it into practice.

    Start learning

modify x-robots-tag: none from directory

IshuSingh94
Participant

How to change and modify "x-robots-tag: none" from a file or directory to indexing the page easily in search engines ?

0 Upvotes
3 Accepted solutions
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

@IshuSingh94 could you confirm the following?

 

  • Settings > Content > Pages > SEO & Crawlers

  • Scroll down to “Custom Robots.txt

  • Make sure your path (/toptechtarget) is not disallowed (e.g., Disallow: /toptechtarget should not be listed)

Also, can you confirm your page itself is not set to no-index? https://knowledge.hubspot.com/seo/prevent-content-from-appearing-in-search-results

 

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
Aakar
Solution
Key Advisor

Hi @IshuSingh94 - You can set up this setting on both a domain level and a page level. If you want to control it at the domain level, go to Settings > Content > Pages > SEO & Crawlers. I would advise editing or updating this if you understand how it works.

I'd suggest checking HubSpot's robots.txt to get some ideas: https://www.hubspot.com/robots.txt

If you're thinking of indexing your website, ensure you've setup sitemap.xml as well, which you can access from: Settings > Content > Domains & URLs > Sitemap


Thanks.

Aakar Anil
Marketing Technologist
aakar.me | @aakarpost | in/aakarpost

View solution in original post

IshuSingh94
Solution
Participant

Hi @aakarpost, Thanks for helping me out to successfully submit my sitemap.

toptechtarget sitemaptoptechtarget sitemap

View solution in original post

0 Upvotes
7 Replies 7
Aakar
Solution
Key Advisor

Hi @IshuSingh94 - You can set up this setting on both a domain level and a page level. If you want to control it at the domain level, go to Settings > Content > Pages > SEO & Crawlers. I would advise editing or updating this if you understand how it works.

I'd suggest checking HubSpot's robots.txt to get some ideas: https://www.hubspot.com/robots.txt

If you're thinking of indexing your website, ensure you've setup sitemap.xml as well, which you can access from: Settings > Content > Domains & URLs > Sitemap


Thanks.

Aakar Anil
Marketing Technologist
aakar.me | @aakarpost | in/aakarpost
IshuSingh94
Solution
Participant

Hi @aakarpost, Thanks for helping me out to successfully submit my sitemap.

toptechtarget sitemaptoptechtarget sitemap

0 Upvotes
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

Hi @IshuSingh94,

 

Let's leverage generative AI to answer this query:

 


1. Determine Where the Header Is Being Set

The X-Robots-Tag HTTP header might be configured in:

  • Apache .htaccess or main httpd.conf configuration

  • NGINX nginx.conf or site-specific config

  • Server-side code (PHP, Node.js, Python, etc.)

  • Web hosting control panels (such as cPanel or Plesk)

  • CDN or firewall layers (like Cloudflare or Sucuri)

  • Application frameworks or CMS platforms

Use a tool like curl -I or an online HTTP header checker to identify which files or directories return this header.

 

2. Modify the Configuration Based on Your Environment

Apache (via .htaccess or httpd.conf)

Search for a line that sets the X-Robots-Tag header. If it is set to "none", you will need to either remove the line or change it to "index, follow". After modifying httpd.conf, make sure to restart Apache.

 

NGINX

In the server block or location block of your configuration, locate any directive setting X-Robots-Tag to "none". You can remove this line or change it to "index, follow". After editing, reload the NGINX configuration.

 

PHP or Other Application Code

If the header is being set in server-side code, locate and modify or remove the function that adds the X-Robots-Tag: none header. You can also explicitly set it to "index, follow" to ensure indexing is allowed.

 

Cloudflare or Other CDN Providers

Check the response header rules within your CDN dashboard. If there is a rule applying X-Robots-Tag: none to specific URLs or file types, remove it or change the value to "index, follow".

 

robots.txt File

While not related to the X-Robots-Tag header directly, ensure your robots.txt file is not disallowing the directory or file in question. A Disallow rule for the path will prevent search engines from crawling it regardless of headers.

 

3. Confirm That the Header Has Been Updated

After making changes, test the URL again using a header inspection tool or by running a curl command. The response should no longer contain X-Robots-Tag: none. If present, it should now read index, follow, or be entirely absent, which by default allows indexing.


Hope this helps!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
IshuSingh94
Participant

how to change the hubspot default website

0 Upvotes
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

@IshuSingh94 I'm not sure what exactly you're referring to. Could you please share a bit more context?

 

If you're referring to the default page you're seeing when accessing the app, you can set that under Settings → General → Profile.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
IshuSingh94
Participant

I want to index my HubSpot website URL, https://toptechtarget-243220195.hs-sites-na2.com/toptechtarget, in a search engine. but got a error for indexing and crawling in PageSpeed Insights.Capture_error.PNG

how to access this file or directory to modify these changes

 

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

@IshuSingh94 could you confirm the following?

 

  • Settings > Content > Pages > SEO & Crawlers

  • Scroll down to “Custom Robots.txt

  • Make sure your path (/toptechtarget) is not disallowed (e.g., Disallow: /toptechtarget should not be listed)

Also, can you confirm your page itself is not set to no-index? https://knowledge.hubspot.com/seo/prevent-content-from-appearing-in-search-results

 

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes