A
Abhi
I need help with setting up a proper robots.txt for specific conditions. We recently launched two new products that are starter kits, and we need to deploy them on a subdomain with separate landing pages as products. These pages are not demos but product pages.
Previously, we had disallowed indexing of product's demo URLs on our subdomain, as they were conflicting with our main product and category pages. However, after blocking the demo URLs, these new product pages were also blocked from being indexed as they were hosted on demos domain.
We attempted to adjust the robots.txt files by allowing the new product pages and blocking the rest of the products' demo URLs, but it doesn't seem to be working as intended.
Can anyone guide us on how to configure the robots.txt file to allow specific demo URLs (the new product pages) to be indexed while blocking the other demo URLs from being crawled by search engines?
Here is the scenario. I hope it is fine to put the site urls as without it, it will be not easy to understand the issue.
In main domains robots.txt we have set a rule to disallow the demo urls as we don't wan t o index them
We have a separate robots.txt for subdomain where we have set this condition
We have set this conditions to tell googlebots to crawl and index specifically 4 urls but disallow the rest of the demos urls of other products.
However, we are not able to achieve it.
Is there any way?
It would be really helpful if anyone can guide me here to make sure that googlebots crawl the specific demo urls but don't crawl the rest of the product demos.
To check robots.txt here they are
Continue reading...
Previously, we had disallowed indexing of product's demo URLs on our subdomain, as they were conflicting with our main product and category pages. However, after blocking the demo URLs, these new product pages were also blocked from being indexed as they were hosted on demos domain.
We attempted to adjust the robots.txt files by allowing the new product pages and blocking the rest of the products' demo URLs, but it doesn't seem to be working as intended.
Can anyone guide us on how to configure the robots.txt file to allow specific demo URLs (the new product pages) to be indexed while blocking the other demo URLs from being crawled by search engines?
Here is the scenario. I hope it is fine to put the site urls as without it, it will be not easy to understand the issue.
- Main site: https://themeselection.com/
- Subdomain: https://demos.themeselection.com/
In main domains robots.txt we have set a rule to disallow the demo urls as we don't wan t o index them
Code:
Disallow: /demo/
We have a separate robots.txt for subdomain where we have set this condition
Code:
User-agent: *
Allow: /robots.txt
Allow: /jetship-laravel-starter-kit/
Allow: /jetship-laravel-starter-kit/*
Allow: /jetship-nextjs-starter-kit/
Allow: /jetship-nextjs-starter-kit/*
# Sitemap location
Sitemap: https://demos.themeselection.com/jetship-laravel-starter-kit/sitemap.xml
Sitemap: https://demos.themeselection.com/jetship-nextjs-starter-kit/sitemap.xml
Disallow: /
We have set this conditions to tell googlebots to crawl and index specifically 4 urls but disallow the rest of the demos urls of other products.
However, we are not able to achieve it.
Is there any way?
It would be really helpful if anyone can guide me here to make sure that googlebots crawl the specific demo urls but don't crawl the rest of the product demos.
To check robots.txt here they are
Continue reading...