Posted By

gauravjassal on 03/12/10


Tagged

htacessphp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

eval


.htaccess file to access page without .php exstension


 / Published in: PHP
 

  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteRule ^()$ index.php [NC,L]
  4. Rewritecond %{REQUEST_URI} !(^/?.*\..*$) [NC]
  5. RewriteRule (.*)$ $1.php [NC]
  6.  
  7. ErrorDocument 404 /index

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: breign on August 14, 2010

I've just +MultiViews in my Vhost configuration and requests works without any extensions.

You need to login to post a comment.