Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How in include header in all pages

by ciderpunx (Vicar)
on Feb 15, 2011 at 10:56 UTC ( [id://888195]=note: print w/replies, xml ) Need Help??


in reply to Re: How in include header in all pages
in thread How in include header in all pages

Another Apache solution would be to use a virtual include.

In your .htaccess file:

AddType text/html .shtml AddOutputFilter INCLUDES .shtml Options +Includes
Your 'page' (call it page.shtml):
<html> <head> <title>My lovely page</title> </head> <body> <!--#include virtual="/cgi-bin/header.cgi--> <p>My page content</p> </body> </html>
--
Linux, perl, punk rock, cider: charlieharvey.org.uk.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://888195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-06-20 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.