Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      Discover top competitors’ winning content
      What's New

      Discover top competitors’ winning content

      Learn More
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Take the quiz
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      The Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature: Moz Pro

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. Home
    2. SEO Tactics
    3. is my robot file correct

    is my robot file correct

    SEO Tactics
    robots.txt ranking
    3
    3
    127
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • blogwoman1
      blogwoman1 last edited by

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

      Huzaifa_410 1 Reply Last reply Reply Quote 0
      • casinopro
        casinopro last edited by

        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.
        
        1 Reply Last reply Reply Quote 0
        • Huzaifa_410
          Huzaifa_410 @blogwoman1 last edited by

          @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.txt

          Hi, 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.php

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

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Got a burning SEO question?

          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


          Start my free trial


          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.

          • See all categories

          Related Questions

          • Roycd

            Google not listing website correctly

            google listing seo website submission

            have a domain that was unused for a while and displayed the "parked by Gandi" domain message. Recently, I decided to set up a fully working website on that domain, but I'm struggling to get it to rank correctly on Google. Google isn't updating the http://domain.com to the correct https://www.domain.com, and I have tried everything. The http://domain.com redirects to https://www.domain.com if you click on it. I managed to get the correct version, https://www.domain.com, to show up, but after a couple of days, it reverted to the old version and has stayed that way. This has been going on for a few weeks now. Additionally, I had an old version of the site using .com, and I forwarded that to the .co.uk, but the old .com will not be removed from Google. it was just one page without much content. At the moment, Google's search results look very messy and out of date. I have submitted the URL in the Google Search Console using the URL inspection tool and requested indexing and reindexing. I have also submitted sitemaps, but nothing is really working. Any ideas?

            SEO Tactics | | Roycd
            0
          • headlinesplus

            Google Not Picking Up Posts

            ranking ranking issue

            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 | | headlinesplus
            0
          • blogwoman1

            What Tools Do I USe To Find Why My Site No Longer Ranks

            indexing technical seo ranking

            Hi, I made the mistake of hiring a freelancer to work on my website [in2town.co.uk](link url) but after having a good website things went from bad to worse. The freelancer was kicked off the platform due to lots of compliants from people and creating backdoors to websites and posting on them. It cost me money to have the back door to our site closed. I then found lots of websites were stealing my content through the rss feed. Two of those sites have now been shut down by their hosting company. With all these problems I found in Feb that the hundreds of keywords that I ranked for had vanished. And all the ones that were in the top ten for many years have also vanished. When I create an article which includes https://www.in2town.co.uk/skegness-news/lincolnshire-premier-inn-staff-fear-for-their-jobs/ they cannot be found in Google. Normally before all these problems, my articles were found straight away. If I put in the title name Lincolnshire Premier Inn Staff Fear For Their Jobs and then add In2town in front of it, then instead of the page coming up with the article, it instead shows the home page. Can anyone please advise what tools i should be using to find out the problems and solve them, and can anyone offer advice please on what to do to solve this.

            Technical SEO | | blogwoman1
            0
          • PunchyMcSkeletor

            Only my homepage ranks for my keywords, should I delete my other pages?

            keywords ranking homepage seo

            I am an independent artist and all of my business inquiries come through my website (www.ChrisCarlsonArt.com). Over the last 6 months I have been trying to get pages other than my homepage to rank for my keywords, but I haven't made any progress. I worry that I am cannibalizing my keywords since my pages all have similar information. Should I just delete my other pages and focus on ranking my homepage? Also, if I delete my other pages will that have a negative impact on my rankings?

            SEO Tactics | | PunchyMcSkeletor
            0
          • Trueonefix

            words not appearing in the search engine or not ranking correctly ?

            google webmaster seo rankings seo page treatment

            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 | | Trueonefix
            0
          • Bush_JSM

            Blocking in Robots.txt and the re-indexing - DA effects?

            robots.txt indexation

            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_JSM
            0
          • teikh

            Unsolved Moz crawler not crawling on my site

            crawl error robots.txt

            Hi all, im facing an issue where moz crawler is unable to crawl my site. The following error keeps showing Our crawler was banned by a page on your site, either through your robots.txt, the X-Robots-Tag HTTP header, or the meta robots tag. This is my robots.txt file : https://www.wearefutureheads.com/robots.txt I'm not sure what else am I missing.. can anyone help

            Product Support | | teikh
            0
          • Simon-Plan

            Unsolved What would the exact text be for robots.txt to stop Moz crawling a subdomain?

            robots.txt crawl disallow subdomain sub-domain

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

            Getting Started | | Simon-Plan
            0
          Moz logo
          • Contact
          • Community
          • Free Trial
          • Terms & Privacy
          • Accessibility
          • Jobs
          • Help
          • News & Press
          • MozCon
          © 2021 - 2024 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.

          Looks like your connection to Moz was lost, please wait while we try to reconnect.