Remove .php from URL

Submitted by:Jhon Brain

Date added:29 July, 2015

Category:Apache

Apache code example shows how to remove .php from URL

Tags: remove php , apache

Code Snippet:

    RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]
 
 

Comments