is my robot file correct
-
hi, can anyone let me know if my robot file is correct. my pages and wordpress posts are being indexed but not showing in serps and wondering if my robot file is wrong
-
Yes, your robots.txt file appears to be correctly configured for common use cases. Here is a brief explanation of each line to ensure it meets your needs:
Sitemap: https://www.in2town.co.uk/sitemap_index.xml: This specifies the location of your sitemap, which helps search engines understand the structure of your site and find all of your pages. User-agent: *: This applies the following rules to all web crawlers. Disallow: /wp-admin/: This prevents web crawlers from accessing your WordPress admin area, which is standard practice for security and to prevent search engines from indexing unnecessary pages. Allow: /wp-admin/admin-ajax.php: This explicitly allows access to admin-ajax.php, which is often necessary for some plugins and features in WordPress to function correctly. Allow: /ads.txt: This explicitly allows access to the ads.txt file, which is used by the Authorized Digital Sellers standard to prevent ad fraud.
-
@blogwoman1 said in is my robot file correct:
hi, can anyone let me know if my robot file is correct. my pages and wordpress posts are being indexed but not showing in serps and wondering if my robot file is wrong
https://www.in2town.co.uk/robots.txtHi, to determine if your robots.txt file is correct, review the content of the file to ensure it's not inadvertently blocking important pages. Your robots.txt file should specify which parts of your site should not be crawled, while allowing access to essential pages and posts.
Here's a quick check of your file:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.phpThis configuration should not block search engines from indexing your posts and pages. If your pages are being indexed but not appearing in SERPs, it might be due to other factors like content quality, keyword competition, or lack of backlinks. Use Google Search Console to check for any crawl errors, indexing issues, or manual penalties. Additionally, ensure that your sitemap is properly submitted and up-to-date, and consider optimizing your content and meta tags for better visibility in search results.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google Not Picking Up Posts
I am trying to work out why from March 4th Google is not seeing my posts. Our google impressions have dropped from 8,000 to 40. If you put in the full article name with speach marks it does not find it, and instead shows the home page in google. We have not had any warnings. We did have work done on our site but nothing else i could think of to cause this. Can anyone let me know what may have caused this. All articles are original
Technical SEO | | headlinesplus0 -
How to Increase Website Visibility on Google and Bing?
I am working on an e-commerce niche website and I aim to rank higher on Google to drive more traffic to my website. Any suggestions?
Link Building | | digitalenginehub0 -
Migrating Subfolder content to New domain Safely
Hello everyone, I'm currently facing a challenging situation and would greatly appreciate your expertise and guidance. I own a website, maniflexa.com, primarily focused on the digital agency niche. About 3 months ago, I created a subfolder, maniflexa.com/emploi/, dedicated to job listings which is a completely different niche. The subfolder has around 120 posts and pages. Unfortunately, since I created the subfolder, the rankings of my main site have been negatively impacted. I was previously ranking #1 for all local digital services keywords, but now, only 2 out of 16 keywords have maintained their positions. Other pages have dropped to positions 30 and beyond. I'm considering a solution and would like your advice: I'm planning to purchase a new domain and migrate the content from maniflexa.com/emploi/ to newdomain.com. However, I want to ensure a smooth migration without affecting the main domain maniflexa.com rankings and losing backlinks from maniflexa.com/emploi/ pages. Is moving the subfolder content to a new domain a viable solution? And how can I effectively redirect all pages from the subfolder to the new domain while preserving page ranks and backlinks?
Intermediate & Advanced SEO | | davidifaso
I wish they did, but GSC doesn't offer a solution to migration content from subfolder to a new domain. 😢 Help a fellow Mozer. Thanks for giving a hand.0 -
Google is ranking only home page not even considering to rank other pages!
Hey Community! I am facing an ranking issue, I am trying to rank on multiple quires with my sub-pages. The issue is homepage is ranking on every single query. Even the homepage's content is not relevant to that query! I have made sure to remove any sort of content relevancy from homepage which i trying to rank with my sub-pages. Business/Website Details: We are a recruitment agency based Pakistan providing manpower around the globe and other recruiting services. We are targeting each country with a sub-page. Even after I have done some necessary things but still there is not effect on rankings. Let me share some examples: Query: recruitment agency for gulf in pakistan Home Page Showing
SEO Tactics | | xShams
1.jpg Page i want to ranking:
2.jpg This issue is not only with this page, it's appearing on multiple quires but I think it should clear the issue I am facing. Now: Any Possible Solutions to this technical or ranking error. Backlinks on this query don't matter because you can check the other search results don't have any backlink data on them. Please share some quick thoughts on-page content. Even I make a page that have the word recruiting/recruitment in it google will automatically rank homepage and not the page i want! Thanks in advance for help 🙂0 -
words not appearing in the search engine or not ranking correctly ?
Although we do all the SEO work on our website, we do not rank in the words computer repair and laptop repair, although our backlink rate is good. The address of our website is https://trueonefix.com, one of the keywords I gave to the homepage that I was really curious about, for example, computer repair, I created a page on this page ( https://trueonefix.com/computer-repair/ ), they told me it was cannibalization and I removed it, now the site is getting less rankings than before. Can anyone help as to why this is? No matter what I do, I can't rank the words. #trueonefix #googlerank
SEO Tactics | | Trueonefix0 -
Blocking in Robots.txt and the re-indexing - DA effects?
I have two good high level DA sites that target the US (.com) and UK (.co.uk). The .com ranks well but is dormant from a commercial aspect - the .co.uk is the commercial focus and gets great traffic. Issue is the .com ranks for brand in the UK - I want the .co.uk to rank for brand in the UK. I can't 301 the .com as it will be used again in the near future. I want to block the .com in Robots.txt with a view to un-block it again when I need it. I don't think the DA would be affected as the links stay and the sites live (just not indexed) so when I unblock it should be fine - HOWEVER - my query is things like organic CTR data that Google records and other factors won't contribute to its value. Has anyone ever blocked and un-blocked and whats the affects pls? All answers greatly received - cheers GB
Technical SEO | | Bush_JSM0 -
Unsolved What would the exact text be for robots.txt to stop Moz crawling a subdomain?
I need Moz to stop crawling a subdomain of my site, and am just checking what the exact text should be in the file to do this. I assume it would be: User-agent: Moz
Getting Started | | Simon-Plan
Disallow: / But just checking so I can tell the agency who will apply it, to avoid paying for their time with the incorrect text! Many thanks.0