Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a site, which has a main site served by Google Sites and a custom made forum running on a dedicated server. Now we want to use the header from Google Sites also on the forum, so it feels like the same site. I first tried creating an IFrame on the main site and placing the forum inside this IFrame. This looked nice, but I did not find a way to make direct links. The URL always was Open-Org.com no matter which topic on the forum one clicked at.

I have thought about simply copying the relevant HTML code, but this means that I have to recopy it every time the header on the main page changes. Is there a nicer way to do such a thing? It must be a problem that many sites needs to solve.

If what I am describing is unclear, there are more specific information here.

share|improve this question

closed as off topic by Su', John Conde Sep 27 '12 at 1:07

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

On your dedicated server create and run a script that retrieves the HTML of a page from your site hosted at Google Sites. Have it parse that file to retrieve the header HTML. Then have the script update the header file for your forum.


  • You will make your life a lot easier if you use comments to delimit where the header ends so the parse knows where to stop.
  • Before parsing the text check the last modified time of the file. If it hasn't changed then don't bother parsing it.
share|improve this answer
Thanks! If you would like to get your hands dirty, you are very welcome to implement this task. You can find details about payment etc here: forum.open-org.com/q177/…. To get yourself a server running the forum software, you just need an Amazon Web Service account. You can launch the server using this simple web application: open-org.com/develop-open-orgcom – David Apr 18 '12 at 0:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.