Global header

I have this Cpanel site I am developing, included are many pages in the navigation menu. Although to change the links in the header of all those pages I have to goto each one individually
http://iphosting.info/

How do I make the header and footer static so its global for the whole site.
LVL 4
Moizsaif123Asked:
Who is Participating?
 
GaryConnect With a Mentor Commented:
In IIS make sure SSI is enabled
http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7

Then use
<!--#include virtual="insertthisfile.html" -->
0
 
GaryCommented:
I'm assuming php
<?php
include "/header.php";
?>

If not php what server are you on?
0
 
Moizsaif123Author Commented:
im using basic html, cant it be done using javascript
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
GaryCommented:
What server are you using? Apache, IIS ...?
0
 
Moizsaif123Author Commented:
i think it is IIS, because when i use this code below it gave me the response


<%
response.write("My first ASP script!")
%>

Open in new window

0
 
Moizsaif123Author Commented:
This is not fully resolved. I could not find the IIS cze I think the host is running apache .If you know how to setup apache on my webserver using the CPanel, I can create a ticket and tell u my credentials to help me out.
0
 
Moizsaif123Author Commented:
or we can use teamviewer to connect to my machine...any option can be good
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.