Can Someone Explain This Code?

by 11 replies
13
I have this code on my script. Is this correct or should it be "no follow"

</script><meta name="robots" content="follow, all" />Im still trying to undersrtand about robots.txt file?PLease enlighten me.thanks
#search engine optimization #code #explain
  • Means robots/spiders/search engines are allowed to follow all your content and pages on your website.
    • [ 1 ] Thanks
    • [1] reply
    • <quote>
      </script><meta name="robots" content="follow, all" />
      </quote>


      And while you are at it, recommend you move that meta tag up above the first script marker. Like shown below... normally we don't run a lot of script stuff until after all the meta tags are laid our.. might not be required, but is good policy.
      Be careful not to get the meta in between the start and end script...



      <meta name="robots" content="follow, all" />

      <script>
      blah... blah... blah..
      </script>
  • Ok thanks Aaron, i thought it meant they couldnt.

    Can you also tell me when i check my site url in firefox with seo quake in the parameters section it got Robo:no. Are u sure i have the robo text file installed?
    • [1] reply
    • Aaron did not comment on whether or not you had a robots.txt file... he's good but he does not have Xray vision... if the Quake says you don't have a robots.txt file quake does have xray vision and probably could not find it... the robot comment above is a meta tag in your web page telling robots what they can do... has nothing to do with your robots.txt file.... the best way to talk to robots is via the robots.txt file here is a ton of stuff to keep you busy the rest of the night learning what and how to use that magical text file..
      The Web Robots Pages
  • Hi tommy, i have it like this. is it ok?

    </script><meta name="robots" content="follow, all" /><meta name="language" content="en, sv" /><title> blah bla <title>
    • [1] reply
    • </script><meta name="robots" content="follow, all" /><meta name="language" content="en, sv" /><title> blah bla <title>


      Better like this...

      <meta name="robots" content="follow, all" />
      <meta name="language" content="en, sv" /><title> blah bla <title>

      <script>
      </script>




      It will be ok... its just that you did not show the open part of the script <script> you only showed the close </script>

      Normally we don't start writing script until all the meta tags are done... either way it will work.... just poor layout...
  • Thanks tommytx. How essential is the robots.txt file for a new site?
    • [1] reply
    • Not essential at all... unless you want to try to keep some engines out... even then they may ignore your stay away commands...

      Its possible google might give you a 1/2 point for having it... and it will keep the 404 junk out of your AWstats... cause google does look for it on every visit and you get a ton of 404 cannot find the robots.txt file... so its ok if you use it but not mandatory..
  • Hi warriorspirit786,

    I believe that code is nonsense and totally unnecessary.

    By default, search engine bots will index a page and follow links to it. So there's no need to tag pages with content values of INDEX, FOLLOW or ALL.

    Official Google Webmaster Central Blog: Using the robots meta tag

    For a quick reference of Robot Meta Tag attributes that are valid see:
    Robots META Tag - The NoArchive Initiative
  • That is simple and every thing is there,
  • That "script" is not needed. All search engines will "follow" anyways unless you create a robots.txt file and specify otherwise.

Next Topics on Trending Feed