php - Redirect wrong urls to 404 page -
how redirect wrong urls 404 page?
for example, subdomain.domain.com
fine, if users enter subdomain.domain.com/asadasd/ada
or that, index page still shown. how make these mistyped urls show 404 page?
im using php, mysql, cpanel ect ect.
yes, using htaccess errordocument 404 /error.php
no luck here.
you can use '.htaccess' put line in .htaccess errordocument 404 /error.php
, create error.php
file in root folder.