[英]redirect all request to single file and fetch the requested data via htaccess and php
我想知道如何通過php和.htaccess獲取所有請求的鏈接
基本上,我希望所有請求(實際上不作為文件存在)都將定向到index.php
從index.php中,我將回顯顯示的請求。
所以哇
https://puaction.com/nonexistedpage.php
將會去 :
並在404.php上
<?php
$reqpage = /* fetch from htaccess */
echo 'the page : '.$reqpage.' that you requested is not exists';
?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.