我想知道如何通过php和.htaccess
获取所有请求的链接基本上我希望所有请求(实际上不作为文件存在)将被定向到index.php
并从index.php我将回显显示的请求。
所以iow:
https://puaction.com/nonexistedpage.php
将转到:
和404.php
<?php
$reqpage = /* fetch from htaccess */
echo 'the page : '.$reqpage.' that you requested is not exists';
?>
答案 0 :(得分:0)