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