Posted By

wiryanm on 06/06/12


Tagged

htaccess


Versions (?)

Remove .php from URL


 / Published in: Apache
 

URL: http://css-tricks.com/snippets/htaccess/remove-file-extention-from-urls/

.htaccess

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

Report this snippet  

You need to login to post a comment.