How to remove php extension from url

you can do that by using htaccess file. write below code in your .htaccess file

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.php [NC,L]
Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
 

set custom 404 page via htaccess

you can set a custom 404 error page via a .htaccess file very easily. This will allow you to set a good looking error page insted of default boring page.

(1)create a page at your root directory name 404.php and design it.
(2)create a .htaccess file at your root directory or if you have already then open it
(2)add following code in this file

ErrorDocument 404 404.php

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone