how to change meta codes in static pages

Discussion in 'HTML & Website Design' started by tyggemannen, Sep 3, 2006.

  1. #1
    Hi.

    I am going to get rid if some meta tags on thousands of pages, the tags are different in all pages. How can I do this ?
    One way could be to delete line 5, 6, and 7 in the html, but how to do that in thousands of pages ?

    I can do it server side or local, doesnt matter.

    thanks, best, c.
     
    tyggemannen, Sep 3, 2006 IP
  2. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    there is no actual way of doing this I don't think. should've started out with dynamic pages ;)

    if all the pages are in the same folder, you could use the find and replace function in many editors. that's what I used to do anyways back in the golden days.
     
    abcdefGARY, Sep 3, 2006 IP
  3. smatts9

    smatts9 Active Member

    Messages:
    1,089
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Are all the metas throughout the site the same?
     
    smatts9, Sep 3, 2006 IP
  4. tyggemannen

    tyggemannen Guest

    Messages:
    842
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for your answers, the problem is that all the metas are different, unique for each page, so search and replace is not going to work.

    Or do you mean if the meta type are the same ? In that case yes.
    I want to take away
    description
    keyword
    revisit-after

    What about some php script that takes away line 5, 6, 7 in the html ?
     
    tyggemannen, Sep 4, 2006 IP
  5. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #5
    That could work and you could search the lines to make sure they are the right ones.

    But after they are removed, what do you want there?
     
    noppid, Sep 4, 2006 IP
  6. tyggemannen

    tyggemannen Guest

    Messages:
    842
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Then I have to find somebody that are willing to help with the php code : )

    After I have removed them I dont want anything there I think. I have this 3000 pages in google supplemental. They did ok before going there and this is part of a "plan" (witch I dont have, or noone else it looks like) to get out of supp.
     
    tyggemannen, Sep 4, 2006 IP
  7. Dabs

    Dabs Peon

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have a suggestion:

    Do it locally. (or rather, not live on your webserver, maybe you have a shell account or something. Local will make sure you can experiment.)

    1. stuff all your html in a directory (or make sure you can program it to find the pages)

    2. make a program or script that searches the first 10 lines for "meta" and have it delete that line. You can have it search for specific metas like "keywords" or "description" or "revisit" to make sure that is the correct line. Something like [if line has meta and keyword then delete this line]. You don't want to just delete the line number without checking if that is the line you want deleted.

    The specifics of this require you to know how to program scripts, or maybe even something like Visual Basic or one of the free interpreted languages.

    You can do it yourself, or you can outsource the job.

    I'd be happy to check out your pages, but I wouldn't want to do all thousands of them. Maybe you can give examples of these pages with meta tags. (or zip up a dozen of them and have them available for download?)

    While you're at it, you might want to have the program get rid of whitespace or double spaces.

    And of course, back up. You don't want a mistake.
     
    Dabs, Sep 4, 2006 IP
  8. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #8
    This will not be hard for even a novice php guy. However, I dunno if removing them will help.

    Are they all the same on every page? Are the pages setup in a way that some maybe H1 tag could be found and used for the title and maybe something exle for the description?
     
    noppid, Sep 4, 2006 IP
  9. tyggemannen

    tyggemannen Guest

    Messages:
    842
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Its pages with very little text.
    I use H1 for title and H2 for a one line explanation, H3 for another explanation.
    Then there are some text without tags.

    Another thing i noticed, their motherpages all have PR4, still theses pages has PR0. They are all the same age, maybe that comes with the supp.
     
    tyggemannen, Sep 4, 2006 IP
  10. smatts9

    smatts9 Active Member

    Messages:
    1,089
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    88
    #10
    Can you give an example of a page with waht you want to be removed?
     
    smatts9, Sep 4, 2006 IP
  11. fatinfo guy

    fatinfo guy Peon

    Messages:
    586
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I don't think you should remove the unique meta tags, you may want to improve on your content text maybe. Because I am facing the supplemental index without the meta tags (and currently working on adding tags). No matter how you look at it, we are both screwed.
     
    fatinfo guy, Sep 4, 2006 IP
  12. tyggemannen

    tyggemannen Guest

    Messages:
    842
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I want to remove the tags because they all have the same text, its my first web site and I see that now that it looks spammy. You know, same text in title, description, keyword, H1 and H2. Its not good, but at the time I made them I thought that it was just good SEO : ))))

    Thanks for the idea Dabs
    "[if line has meta and keyword then delete this line]."
    That would be perfect to have a php script doing that, could also be used for numerous other purposes.


    What I want to change is from:

    <title>Welcome to blah - blah text blah blah radio online</title>
    <meta name="description" content="blah - blah text blah blah Radio and more."/>
    <meta name="keywords" content="blah - blah, text, blah, blah, radio "/>
    <meta name="revisit-after" content="10 days"/>

    to

    <title>Welcome to blah - blah text blah blah radio online</title>
     
    tyggemannen, Sep 4, 2006 IP