PHP includes and redirecting from a .html to a .php?

^__^

New member
Hi there ^^
I have about 100 pages on a website, and it takes a lot of time to change the navigation on every single file every time I want to change something. So, I thought a php include would be a good idea...

<?php include("header.php"); ?>

I saved my file (index.html) and it didn't work.
Then I saved my file as index.php and it did work.

Am I going to have to change all of my files to .php and then use a redirect so that visitors don't end up on the wrong page?

Thanks in advance for the help :)
edit:

I already have a full website up and I've just been making do with changing the navigation manually every single time. Visitors with a link to a something.html page would not get the same thing as a something.php page, so should I just put a redirect on all on my html pages?

PHP is indeed installed on my host's server. I checked twice.

Am I making any sense? OTL
 
Back
Top