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 :
and on 404.php
<?php
$reqpage = /* fetch from htaccess */
echo 'the page : '.$reqpage.' that you requested is not exists';
?>