Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

hide php extension in url

Options +MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.php [NC,L]
Source by alexcican.com #
 
PREVIOUS NEXT
Tagged: #hide #php #extension #url
ADD COMMENT
Topic
Name
2+4 =