<meta name="robots" content="index, follow"> - A way of adding to all pages quickly?

Discussion in 'HTML & Website Design' started by andyleem, Jul 6, 2007.

  1. #1
    I am required to add <meta name="robots" content="index, follow"> to all of the product pages on our site.
    We have over a hundred products and it would be very hard adding that code to the html of all of the product pages.
    So is there an easier/better way of doing this?

    Andy
     
    andyleem, Jul 6, 2007 IP
  2. zirve-insaat

    zirve-insaat Banned

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you must add to all pages i think.

    Thanks
     
    zirve-insaat, Jul 6, 2007 IP
  3. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #3
    frankcow, Jul 6, 2007 IP
  4. bric002

    bric002 Active Member

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #4
    As in Dreamweaver, I would select some code that is on all pages like:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    Then do a FIND: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    Then do a REPLACE WITH: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="robots" content="index, follow">


    You could use </head> and put your code on the line before it in the REPLACE WITH option.

    Make sense?
     
    bric002, Jul 6, 2007 IP
  5. metalstein

    metalstein Well-Known Member

    Messages:
    660
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #5
    hi andy this is the way

    open any page in your web site folder with dreamweaver
    select line before this code <meta name="robots" content="index, follow">
    click ctrl+f

    paste with your mate tag in replace box. then choose find in folder and select your folder which is all your pages in that folder.

    than click replace all
    it will finish in second successfully

    [​IMG]
     
    metalstein, Jul 6, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Andy, you don't need to add this code to any of your pages. Search engines will index any page they find and follow any links they come across unless they are specifically told otherwise, via META tags or the robots.txt protocol.

    And as the owner of a search engine Web site (which won't be of interest to any of you unless you like table-top miniatures warfare games), I can tell you this first-hand.
     
    Dan Schulz, Jul 6, 2007 IP
  7. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #7
    there are many software which can find and replace like PSPAD editor and many others just google them.
     
    kmap, Sep 9, 2007 IP
  8. finqoo

    finqoo Well-Known Member

    Messages:
    319
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #8
    I agree, a SE should index all pages that are linked together over time. Adding <meta name="robots" proberbly won't make a blind bit of difference.
     
    finqoo, Sep 9, 2007 IP
  9. Zippo

    Zippo Peon

    Messages:
    311
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Copy / paste the code in every page to be sure your work isnt just waste the time. You want all your pages indexed, right? So...
     
    Zippo, Sep 9, 2007 IP
  10. Rasczak

    Rasczak Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Rasczak, Sep 10, 2007 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Dan Schulz, Sep 10, 2007 IP
  12. santynayar

    santynayar Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    My reply is very simple and like Bric002. This will work and very simply. So read carefully step by step:
    1) Look for one code/word/words/quote within the title that is unique on the page. Say for instance you select the code <META NAME="website-id" CONTENT="xyz10">
    2) Now add a word that is not there anywhere in your pages to the end of this code (can be anything like "andyleemquest";) your new phrase will be <META NAME="website-id" CONTENT="xyz10">andyleemquest
    3) Run your search and replace software
    4) Put your main directory (with all your pages) in the "location" form
    5) Input the selected code (as given in e.g. above) in the "Search" form
    6) Input the new phrase (like from the step 2) in the "Replace" form & run the software (i.e. replace all).
    Do not fret. I'm not trying to screwup your website. Just read on and you'll understand what I'm doing...
    7) Start your software again
    8) Input only the word that you added in step 2 (andyleemquest in the illustration here) in the "Search" form.
    9) Input the code that you wish to add in all your pages (<meta name="robots" content="index, follow">) in the "Replace" form and run the software again (i.e. replace all)
    You're done - SIMPLE. Isn't it!
     
    santynayar, Jul 9, 2008 IP
  13. ctyler

    ctyler Guest

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    If it is a large website, you might be better of using includes. That way you just have to type it once in you included header file.
     
    ctyler, Jul 10, 2008 IP
  14. genetrix

    genetrix Banned

    Messages:
    400
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #14
    create your pages dinamically with php -> If you need some script , pm me , I will make a code for you .
     
    genetrix, Jul 10, 2008 IP
  15. tonsblogger

    tonsblogger Active Member

    Messages:
    330
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #15
    i'm learning a lot,great.
     
    tonsblogger, May 6, 2009 IP
  16. Grobbulus

    Grobbulus Peon

    Messages:
    557
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #16

    lol. Used to do it that way as well before I learned the power of dynamic websites.
     
    Grobbulus, May 7, 2009 IP