PHP file extension question

Hi,

If I want to use PHP calls for the navigation on my website, does the file extension have to be .php or is there a way to keep the .html extension and still use the PHP calls?

Thanks!

you can configure your web server to accept other file extensions to process as php files but since php files can contain just html and no php code at all if you like, why not just leave any files in say an include() with .php extensions?

imho that is the easiest option.

Hi espett,

You can also use .htaccess file and rewrite the urls.
example:

RewriteEngine On
RewriteRule ^test\.html$ test.php [L,QSA]

For pages using Querystring:

RewriteRule ^test-([0-9]+)-([0-9]+)\.html$ test.php?a=$1&b=$2 [L,QSA]

Thanks Guys!