Pergunta

I was wondering how can I fetch all requested links via php and .htaccess

Basically I want that all requests (that is not physically existed as files) will be directed to the index.php

and from the index.php I will echo the displayed request.

so iow :

https://puaction.com/nonexistedpage.php

will go to :

https://puaction.com/404.php

and on 404.php

<?php

$reqpage = /* fetch from htaccess */

echo 'the page : '.$reqpage.' that you requested is not exists';

?>

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top