The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Best way to create robots.txt for my website

    Best way to create robots.txt for my website

    Technical SEO Issues
    4 4 397
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zoe.wilson17
      zoe.wilson17 last edited by

      How I can create robots.txt file for my website guitarcontrol.com  ?

      It is having login and Guitar lessons.

      1 Reply Last reply Reply Quote 0
      • Guest
        Guest last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 2
        • Mobilio
          Mobilio last edited by

          I see that you're on WordPress.

          This CMS create "virtual" robots.txt. You can see this here:
          https://codex.wordpress.org/Search_Engine_Optimization_for_WordPress#Robots.txt_Optimization

          But on your website there is error in robots.txt and you should see in web server log files (access and error) why this is happening. Also you may need looking .htaccess because something preventing this text file to be accessed.

          There is alternative way for using robots.txt in WordPress. All you need is to create new and blank robots.txt in same folder and put this there:
          User-agent: *
          Disallow:

          Then save file and that's all. Now bad news - WP can't control indexing and crawling anymore.

          1 Reply Last reply Reply Quote 2
          • rootwaysinc
            rootwaysinc last edited by

            Hi,

            First you need to understand your website need, you have to decide which part of your website should not be indexed or crawled by SE bots, like your website provides user login and user areas, if you are providing private dashboard for your user then it should be blocked by robots.txt (or you can use meta tag to prevent robots from crawling and indexing your particular page like ) or you can learn more about robots.txt here https://moz.com/learn/seo/robotstxt

            Hope it helps 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Website URL, Robots.txt and Google Search Console (www. vs non www.)
              RossKernez
              RossKernez
              0
              10
              121

            • Robots.txt best practices & tips
              ThompsonPaul
              ThompsonPaul
              0
              4
              3.2k

            • Best way to manage SEO for a massive events listing website.
              danatanseo
              danatanseo
              0
              4
              1.4k

            • Best use of robots.txt for "garbage" links from Joomla!
              Cyrus-Shepard
              Cyrus-Shepard
              0
              6
              410

            • Best way to get SEO friendly URLSs on huge old website
              SCL-SEO
              SCL-SEO
              1
              3
              399

            • Which is the best way to create a sitemap for a mobile version of an online shop?
              0
              1
              502

            • I can buy a domain from a competitor. Whats the best way to make good use of these links for my existing website
              TheEspresseo
              TheEspresseo
              0
              3
              355

            • Best way to create page title to products catalog
              Theo-NL
              Theo-NL
              0
              4
              1.1k

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy