Hi, I need help with sorting a problem out with my Robots.txt file.
I have a brand new site. I got an email from Google Search Console reporting indexing issue. I have attached a screenshot of the issues.
Although I have very basic knowledge of the Shopify platform, I have managed plenty of sites on Wordpress and Webflow and other places, and it included some changes to robots.txt file. However, I am finding a bit lost and frustrated with this. I do know how to access the file following the reading of KB articles and videos.
Can someone show me an example of a standard robots.txt file that I could use on Shopify that would allow the indexing by Google etc? For now I am hoping to copy and paste with some minor adjustments and deal with it properly when I have a bit more knowledge. I just need my site to get indexed without issues.
It looks like the Blocked by robots.txt is doing it’s job correctly. If you haven’t made any adjustments to your code, this is normal.
If you want to explore further, do the following:
Click on Online Store
On your Current Theme, click the icon with the three horizontal dots
Select Edit Code
On the left side, click Templates
Inside templates, you should see a robots.txt.liquid file. If you don’t see it, click Add a New Template and select the robots.txt. It will generate the default robots.txt file for you.
If you’re unfamiliar with how to safely adjust the default code, I would leave it - it seems to be doing it’s job correctly. In a new browser if you enter ‘www.yourdomain.com/robots.txt’ you can see everything that it’s blocking.
Pourriez vous s’il vous plait partager votre information pour m’aider à ajuster le code par défaut afin que le robot de google indexe correcte toutes mes pages?