Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 having a coffee break in the Monastery: (3)
As of 2025-12-06 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (85 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.