Let's take a look to http://httpd.apache.org/docs/current/mod/mod_rewrite.html and Redirect all to index.php htaccess
:-)
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 :
and on 404.php
<?php
$reqpage = /* fetch from htaccess */
echo 'the page : '.$reqpage.' that you requested is not exists';
?>
No correct solution
OTHER TIPS
Let's take a look to http://httpd.apache.org/docs/current/mod/mod_rewrite.html and Redirect all to index.php htaccess
:-)