Testing Robots.txt

Discussion in 'Search Engine Optimization' started by seoraviraj, Jul 30, 2013.

  1. #1
    * disallow
    allow=Googlebot

    In Robots.txt i wrote above code then What is result
     
    seoraviraj, Jul 30, 2013 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    Well, this one wouldn't do squat, because it's wrong.

    I guess you want to block every bot except googlebot, right?

    Below code would do that
    
    User-agent: *
    Disallow: /
    User-agent: Googlebot
    Allow: /
    
    Code (markup):
    I highly suggest you visit
    
    http://www.robotstxt.org/
    
    Code (markup):
    and read through the site.
     
    GMF, Jul 30, 2013 IP
  3. seoraviraj

    seoraviraj Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    This code may i punt in htaccess file right?
     
    seoraviraj, Jul 30, 2013 IP
  4. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #4
    No, it goes into the robots.txt file
     
    GMF, Jul 30, 2013 IP
  5. seoraviraj

    seoraviraj Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    ok but 301 redirection code/tag need to know
     
    seoraviraj, Jul 30, 2013 IP
  6. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #6
    Yeah, 301 redirection code goes into the .htaccess file

    Here is an example that redirects the whole website
    Redirect 301 / http://newsite.com/
    Code (markup):
     
    GMF, Jul 30, 2013 IP
  7. ntrdtr

    ntrdtr Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #7
    Hi read this tutorial for robots.txt http://codex.wordpress.org/Search_Engine_Optimization_for_WordPress
    You will know many information about robots.txt file.
     
    ntrdtr, Jul 30, 2013 IP
  8. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #8

    Well, if the OP is using wordpress, yes, it would be useful, but ONLY for Wordpress.

    Actually, no. You will not get "many information" from this site. You get the bare minimum.




    The best source is still the official site
    http://www.robotstxt.org/
    Code (markup):
     
    GMF, Jul 31, 2013 IP
  9. ksbharath86

    ksbharath86 Active Member

    Messages:
    121
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #9
    I would suggest you not to block the search engines. You can use this casual code, and in order to place it you have to create a txt file with the below contents and place it in the root folder.
    User-agent: *
    Disallow: /wp-admin/
    Disallow: /wp-includes/
     
    ksbharath86, Jul 31, 2013 IP
  10. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #10

    And what if OP doesn't use Wordpress? :(
     
    GMF, Jul 31, 2013 IP
  11. ksbharath86

    ksbharath86 Active Member

    Messages:
    121
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #11
    I am sorry GMF, I described it with respect to wordpress. I am a begineer for other platforms, and I would be happy if any one could reply with an answer for your question.
     
    ksbharath86, Jul 31, 2013 IP
  12. SASA Techno

    SASA Techno Active Member

    Messages:
    242
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #12
    This code is Robot.txt related so your page is online but search engine is not crawling your page.
     
    SASA Techno, Jul 31, 2013 IP
  13. SERPpoint

    SERPpoint Active Member

    Messages:
    834
    Likes Received:
    17
    Best Answers:
    2
    Trophy Points:
    63
    #13

    You can

    Disallow: /your-private-directory/
     
    SERPpoint, Jul 31, 2013 IP
  14. petersmith5544

    petersmith5544 Greenhorn

    Messages:
    57
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #14
    robots.txt is a simple text file in your web site that inform search engine bots how to crawl and index website or web pages.
     
    petersmith5544, Jul 31, 2013 IP
  15. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #15
    Nobody asked what robots.txt is.
     
    GMF, Jul 31, 2013 IP