惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
News | PayPal Newsroom
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
Forbes - Security
Forbes - Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
PCI Perspectives
PCI Perspectives
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Last Week in AI
Last Week in AI
Blog — PlanetScale
Blog — PlanetScale
Hacker News: Ask HN
Hacker News: Ask HN
H
Heimdal Security Blog
D
Docker
Cloudbric
Cloudbric
P
Privacy International News Feed
S
Security Affairs
TaoSecurity Blog
TaoSecurity Blog
博客园 - 聂微东
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Tenable Blog
Scott Helme
Scott Helme
人人都是产品经理
人人都是产品经理
Recent Announcements
Recent Announcements
P
Palo Alto Networks Blog
小众软件
小众软件
L
LINUX DO - 最新话题
美团技术团队
Google Online Security Blog
Google Online Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
雷峰网
雷峰网
Microsoft Security Blog
Microsoft Security Blog
The Hacker News
The Hacker News
Webroot Blog
Webroot Blog
T
Tor Project blog
G
Google Developers Blog
A
About on SuperTechFans
Y
Y Combinator Blog
K
Kaspersky official blog
A
Arctic Wolf
量子位
I
InfoQ
V
Visual Studio Blog
T
Troy Hunt's Blog
C
Cybersecurity and Infrastructure Security Agency CISA
J
Java Code Geeks
博客园 - 【当耐特】
GbyAI
GbyAI

皮皮社

本地MP4 单集M3U8视频~ 这是流媒体视频~ Bilibili 视频~ 测试代码~简化版灯箱样式 测试一下图片自动转换WEBP功能~ Bdg怀旧主题 V3.52 更新记录 Bdg怀旧主题 V3.51 更新记录 H1-6 bilibili视频~ 大六宫格排版~ 大小宫格排版~ 九宫格排版~ 四宫格排版~ 三宫格 本地音频测试~ 视频集效果测试~ 时间线效果测试~ 折叠短代码测试~ 提示与按钮短代码~ 测试“回复与登陆”功能~ Typecho 在线图片转换压缩工具源码分享 欢迎使用 Typecho 大家都用什么AI大模型呢? 准备炒老板娘了! 准备炒老板娘了! 成本有点高~ 成本有点高~ 换了套表情~ 换了套表情~ 蛋蛋后应该不知道这什么游戏里的BGM吧~ 蛋蛋后应该不知道这什么游戏里的BGM吧~ 很喜欢这种调调的歌曲~ 很喜欢这种调调的歌曲~ 谢谢别人家的老婆跳舞给我看~ 谢谢别人家的老婆跳舞给我看~ [推荐] MediaHuman音频转换器! [推荐] MediaHuman音频转换器! [分享] 一款简单易用的MP3编辑器~ [分享] 一款简单易用的MP3编辑器~ 想她了~ 想她了~ 遮天大帝~ 你们手机有这个功能吗?怪好玩的! 国产浏览器真恶心🤢人! 拍了只鸟! 几年不见你还是那样明艳动人~
Typecho伪静态设置与主题自定义404页面跳转
作者: 柏哥 日期: 6小时前 · 2026-06-29 · via 皮皮社

分享

作者: 柏哥 日期: 6小时前

typecho伪静态设置规则:

location / {
    index index.php;
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php$1 last;
    }
}

若按上述设置后,博客访问无效页面,仍无法正常跳转到主题自带的404.php页面。可打开网站根目录下的 config.inc.php 文件,检查是否开启了调试模式!

因为Typecho在Debug模式下遇到路由不存在会直接抛出异常显示详情,而不是渲染404.php。

找到代码: define('__TYPECHO_DEBUG__', true); 把 true 改为 false 或者将该行代码注释掉即可恢复正常404页面跳转。


文章声明:本文部分内容来源于网络,仅供学习交流,侵权联系删除。

评论: 0 | 查看: 47

发表评论

昵称

邮箱

网址

隐私评论