Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

include standard headers and footers on every page?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Redirecting multiple dynamic (php) pages?  
Author Message
stry_cat

External


Since: Nov 19, 2003
Posts: 4



(Msg. 1) Posted: Thu Feb 19, 2004 1:08 pm
Post subject: include standard headers and footers on every page?
Archived from groups: alt>apache>configuration (more info?)

Is there a way to configure apache to always include a standard header
and footer on every page served?

We have several different departments using our webserver and want
everyone to have a consistent look to their site. Unfortunately
department webmasters have ignored pleas to include our standard
headers and footers.

The other thing is what if I want to do this only on certain
directories?

Thanks in advance.

-Tom

 >> Stay informed about: include standard headers and footers on every page? 
Back to top
Login to vote
user2683

External


Since: Feb 19, 2004
Posts: 1



(Msg. 2) Posted: Thu Feb 19, 2004 5:53 pm
Post subject: Re: include standard headers and footers on every page? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't know if there is a way to have Apache magically slap in headers &
footers appear in every page it serves.

However, you can simply slap SSI (Server Side Includes) into your pages to
insert headers & footers. Of course includes must be active for Apache in
one way or another (Options +Includes)

The method below pulls content from a text file within a specific path:
<!-- #INCLUDE VIRTUAL="/web/poopmoose/include/footer.txt" -->

This method below pulls from within the current folder:
<!-- #INCLUDE FILE="footer.txt" -->

Or along the current path:
<!-- #INCLUDE FILE="include/footer.txt" -->





"Tom Cat" <stry_cat.RemoveThis@yahoo.com> wrote in message
news:fa408b52.0402191008.41bf6cc2@posting.google.com...
 > Is there a way to configure apache to always include a standard header
 > and footer on every page served?
 >
 > We have several different departments using our webserver and want
 > everyone to have a consistent look to their site. Unfortunately
 > department webmasters have ignored pleas to include our standard
 > headers and footers.
 >
 > The other thing is what if I want to do this only on certain
 > directories?
 >
 > Thanks in advance.
 >
 > -Tom<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: include standard headers and footers on every page? 
Back to top
Login to vote
psychosos

External


Since: Jul 08, 2003
Posts: 29



(Msg. 3) Posted: Thu Feb 19, 2004 10:41 pm
Post subject: Re: include standard headers and footers on every page? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

stry_cat.TakeThisOut@yahoo.com (Tom Cat) wrote:
 >Is there a way to configure apache to always include a standard header
 >and footer on every page served?

Take a look at mod_layout at
<a style='text-decoration: underline;' href="http://tangent.org/index.pl?lastnode_id=478&node_id=362" target="_blank">http://tangent.org/index.pl?lastnode_id=478&node_id=362</a>
It might be what you're searching for.
HTH. Regards,
johannes<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: include standard headers and footers on every page? 
Back to top
Login to vote
stry_cat

External


Since: Nov 19, 2003
Posts: 4



(Msg. 4) Posted: Fri Feb 20, 2004 2:15 pm
Post subject: Re: include standard headers and footers on every page? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks that looks exactly like what I want!

johannes m.r. <psychosos.TakeThisOut@gmx.at> wrote in message news:<up0a30l8fonb9966kh0het3i3ir8tiijvn.TakeThisOut@4ax.com>...
 > stry_cat.TakeThisOut@yahoo.com (Tom Cat) wrote:
  > >Is there a way to configure apache to always include a standard header
  > >and footer on every page served?
 >
 > Take a look at mod_layout at
 > <a style='text-decoration: underline;' href="http://tangent.org/index.pl?lastnode_id=478&node_id=362" target="_blank">http://tangent.org/index.pl?lastnode_id=478&node_id=362</a>
 > It might be what you're searching for.
 > HTH. Regards,
 > johannes<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: include standard headers and footers on every page? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ssl_engine_log: You configured HTTP(80) on the standard HT.. - Here is a snippet from my ssl_engine_log and my httpd.conf. I am trying to get my SSL working for my web site. In my ssl_engine_log I am getting the following error I am hopeing someone can help me with: [05/Nov/2003 00:53:54 17242] [info] Server:..

INCLUDE vs FrontPage - I have FrontPage 2002 extensions installed on Apache 1.3 / RedHat 7.3 successfully. I have several virtual hosts, all configured withing /etc/httpd/conf/httpd.conf. I created a directory /etc/httpd/conf/vhosts and added the following line to..

include remote - Apache 2.0.47, PHP 4.3.2, windows XP Pro PHP includes of remote files give an error on Apache, includes of local files no problem. The problem with inclusion of remote files was solved with PHP 4.3.2, but still seems a problem on Apache 2.0.47. Maybe ...

Php Include Problem - I have a few php scripts which perform various database queries. Originally I had them all in the same directory which could be viewed through my apache web server via http://localhost/admin/. I wanted a couple of the php scripts to be accessable on..

include external (nav) in html - hi, our web site is running on a windows apache server.. we have several HTML pages and I want to separate the nav.html and then include that in all the files.. I've tried this.. <!--include file="nav.html"> but it doesn't include the...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]