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.


Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

jquery - jqGrid update specific column data with out refreshing the entire column? -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -