How to make sure that I get a different 404 error in different cases ... I do not know how to formulate the question correctly, but I need it so that in such cases:

  • mysite.ru/ client /erunda.php
  • mysite.ru/ client /tozhe_erunda.php
  • mysite.ru/ client /tozhe_erunda/tolko_drugaya.php

I was shown the page located in mysite.ru/ client /404.php, and in the rest - mysite.ru/404.php

    1 answer 1

    It was necessary to simply put the .htaccess file with its parameters in the client folder. And everything will work fine

    • And if there is no such folder? - MDJHD
    • one
      Process a request with a receiving script - Vitaly Zaslavsky