External link file

They have: 2 posts

Joined: Jan 2010

Hy,
I need some advice please.

I want to giveaway some websites to some clients and friends, but i wish to insert some links in footer of the websites .The problem is i wish to change the links from time to time.
I tried to insert an external .js file like:

The links are displayed on all sites, but the problems is that is't not good for SEO .After simulating the google crawler, the links in the footer are not seen, so it's not good for SEO

Do you have any other advice for me?
Thank you.

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Pretty much you would need to do the Javascript as you are doing, or set up an iframe to call a page from your site. I'm not sure which the SE's would prefer to see better.

If the sites you are giving away are all on the same server (ie, you are hosting them all), then the better way would be to do a server side include on each to a file on the server.

ie with this setup:
/home/mysite/public_html -> http://www.my-site-sample.com
/home/yoursite/public_html -> http://www.your-site-sample.com
/home/theirsite/public_html -> http://www.their-site-sample.com

create the following file with teh code to display:

/home/mysite/public_html/footer-links.php

then on each site, where you want that code, do:

include('/home/mysite/public_html/footer-links.php');

This way, as far as the browser (and SE's) are concerned, that is now part of the page.
(depending on the server setup of the other sites, it is possible to do something similar without being on same server)

-Greg

They have: 2 posts

Joined: Jan 2010

No, the websites are hosted on different servers.
I already tried with javascript like:

The links are displayed just fine an all websites, the problem is that doing some simulation (google crawler) i notice that the crawler dose not see the links, and that's the main purpose.I want to give away websites but i want to insert custom links to the footer from an external source.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.