Best way(seo) to easily change links on multiple websites?

by m00d
7 replies
  • WEB DESIGN
  • |
Hi,

I have 20 websites that are static html. At the top of every page on every site I display some basic text links. The links are the same on all of my websites. What would be the most seo friendly way to easily change all these links in one edit, java, php, iframe? At the moment I have to manually edit all these sites which is time consuming.

Thanks
#change #easily #header #links #multiple #wayseo #websites
  • Profile picture of the author rhinocl
    Here's one way -open all the pages at once (or in manageable sized groups) in a text editor like Notetab Light and do a global find and replace.

    There are probably more efficient ways but they require a little more knowledge and set up effort.
    {{ DiscussionBoard.errors[7799441].message }}
    • Profile picture of the author m00d
      Thanks, yea I can do that in Dreamweaver but I'd rather have all the links in one text file I can edit fast, then place some code on all the pages to add the html form the text file to the page(s). I could do it by iframe but I've read that isn't very seo friendly. Php is a option but I'd have to change the page extensions I think, maybe java?
      Signature
      Cheap WordPress Hosting @ 3Host
      {{ DiscussionBoard.errors[7799490].message }}
      • Profile picture of the author m00d
        I think I've found my answer via seaching, in case anyone else wants to know here it is:

        I'm going to use: <?php include 'header.php'; ?>

        where header.php is the links I'd like to change for all pages.


        Since this is server side all any one can see (including bots) is the output that php produces, if includes are used they become part of the output. So to Google its no different as if the links were actually on the html page.
        Signature
        Cheap WordPress Hosting @ 3Host
        {{ DiscussionBoard.errors[7799692].message }}
        • Profile picture of the author David V
          Originally Posted by m00d View Post

          I think I've found my answer via seaching, in case anyone else wants to know here it is:

          I'm going to use: <?php include 'header.php'; ?>

          where header.php is the links I'd like to change for all pages.


          Since this is server side all any one can see (including bots) is the output that php produces, if includes are used they become part of the output. So to Google its no different as if the links were actually on the html page.
          This certainly is a simple fast way to do this, but keep in mind your html pages cannot have the html extension anymore (.html)
          You'll need to change the pages where you insert the <?php include 'header.php'; ?> to a .php extension.
          Also, just for clarity and organization, I would not name a group of links as "header" unless your really including the whole header in the header.php
          Just name them what they are, "header-links" or "top-nav" something.
          Signature
          "David has managed the digital side of my retail business for over 8 yrs
          and I can't imagine working with anyone else. ~ Carrie Silva | TheDoghouseLLC
          "
          {{ DiscussionBoard.errors[7799879].message }}
          • Profile picture of the author m00d
            Originally Posted by David V View Post

            This certainly is a simple fast way to do this, but keep in mind your html pages cannot have the html extension anymore (.html)
            You'll need to change the pages where you insert the <?php include 'header.php'; ?> to a .php extension.
            Also, just for clarity and organization, I would not name a group of links as "header" unless your really including the whole header in the header.php
            Just name them what they are, "header-links" or "top-nav" something.
            Hi and thanks for the reply, I discovered what you mentioned the hard way

            I didn't want to rename all my html files to php so at first I tried adding the following to the .htaccess file:

            AddType application/x-httpd-php .html .htm

            The above is the standard but wouldn't work on my hostgator account, the browser kept trying to download the file?
            So then I tried:
            AddHandler application/x-httpd-php5 .php .php4 .php5 .html .htm
            and that worked like a charm!
            So now I can put the include statement inside regular old html files.
            Now I've got one file to edit rather than 20 every time I want to add remove a link...shew...


            Thanks
            Signature
            Cheap WordPress Hosting @ 3Host
            {{ DiscussionBoard.errors[7799911].message }}
  • Profile picture of the author SmallBizWebsites
    Although this is a design thread, in your post title you used the term SEO. Because of this, permit me to post a little cautionary thought.

    If you have 20 websites which are on 20 domains, and they all have the same header, then aren't you linking all the sites together? You do not want Google to view your collection of sites as a mini link farm. This would have consequences for all 20 sites.
    {{ DiscussionBoard.errors[7801785].message }}
  • Profile picture of the author pro2sell
    I think he really doesn't need to care about SEO or Google
    {{ DiscussionBoard.errors[7827185].message }}

Trending Topics