apache - Why 404 page is not showing using .htaccess? -
i using following .htaccess code showing error message using 2 php page called 404.php
, not-found.php
when page not found in server. unfortunately it's not working. it's should show 404.php or not-found.php page if page not found.
.htaccess code :
options -multiviews errordocument 404 /not-found.php errordocument 500 /404.php rewriteengine on rewriterule ^(?:zones/)?update/(\w+)/?$ update.php?z=$1 [l,qsa,nc] rewritecond %{request_filename} !-d rewritecond %{request_filename}.php -f rewriterule ^(.+?)/?$ $1.php [l]
Comments
Post a Comment