Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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: (2)
As of 2024-04-20 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found