I have the following situation, I need to check if a particular file exists, based on the URL I'm trying to access, if it exists normally displays, otherwise redirects to an error page.
For example:
I have the following file /paginas/contato.php
, when calling access to the URL myite.com/contact .htaccess would check if the file exists and load it, otherwise it would redirect to an error page.
How should the .htaccess structure be to meet this need?