Configure another extension for php file

apache Configure another extension for php fileWhile surfing in internet my student see "strange" file extension .love

He asked me : "How it could be ?"

Well, I told him about another feature of httpd.conf

Just open httpd.conf , find this line :

AddType application/x-httpd-php .php

Change it into

AddType application/x-httpd-php .php .love .dear .whatever

Save httpd.conf and restart apache

You can save your php file as filename.love or filename.dear

httpd Configure another extension for php file