PHP file without .php extension

PHP file without .php extension

Add the following code in .htaccess file to run php files without .php extension.

AddHandler server-parsed .php

SetHandler application/x-httpd-php

AddHandler application/x-httpd-php .php


RewriteEngine On
RewriteRule ^[^.]+$ – [T=application/x-httpd-php,L]

Latest posts by Sam (see all)


Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.