Question

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';

?>

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top