.htaccess not redirecting to 404.php instead shows page name -


am trying make custom 404 page website , having .htaccess file in root directory using rule

errordocument 404 404.php //i want redirect 404

so when change valid file name home.php home1.php doesn't redirect me instead echo's 404.php on page

side note: 404.php in root directory only

this should

rewriteengine on errordocument 404 http://www.yoursite.com/404.php 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -