.htaccess file to access page without .php exstension

RewriteEngine On
RewriteBase /
RewriteRule ^()$ index.php [NC,L]
Rewritecond %{REQUEST_URI} !(^/?.*..*$) [NC]
RewriteRule (.*)$ $1.php [NC]

ErrorDocument 404 /index

Published by

@XiaoKyun

双鱼男,过分热心的好人。