Hello I want to make through .htaccess (or any other way) to display whenever the user gets a 403 error a 404 error. I don't want it to be done with ErrorDocument because on the header it will still be error 403 and not 404. Reply PLZ!

You can still use ErrorDocument in .htaccess to invoke a customised page for Error 403, and then in the custom Error 403 page you put at the top:

<?php
header("HTTP/1.0 404 Not Found",true,404);
?>

That will send the correct HTTP 404 response.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.