Wednesday, April 15, 2015

Add custom file extension in PHP application

We can add custom file extension in Apache PHP application. We can add our custom file extension instead of .php

For example, index.xyz instead of index.php

Open httpd.conf located in apache/conf folder
Find " <IfModule mime_module> "
Add " AddType application/x-httpd-php .xyz "
Restart your apache server