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

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -