Using .htaccess to make all .html pages to run as .php files? -



Using .htaccess to make all .html pages to run as .php files? -

i need run of .html files .php files , don't have time alter of links before our presentation tomorrow. there way "hack" apache server?

create .htaccess file @ root of website , add together line:

[apache2 @ ubuntu/debian: utilize directive]

addtype application/x-httpd-php .html .htm

if running php cgi (probably not case), should write instead:

addhandler application/x-httpd-php .html .htm

php html apache .htaccess

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -