PHP 代码优化:跳过首页和index.php的404错误页面显示
// 如果是非正常URL,则显示404并退出
if ($s === '' && $s !== 'index' && $s !== 'index.php') {
rt_log_error('bad guy short_url: '.$short_url);
echo '404'; echo "
"; echo "点这里返回首页";
exit;
}
原文地址: https://www.cveoy.top/t/topic/pCJC 著作权归作者所有。请勿转载和采集!