Linux Nginx 环境伪静态
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}链接:https://www.jianshu.com/p/7968d1405836
joe主题当前页面打开列表文章
解决办法
打开usr/themes/Joe-master/assets/js/joe.index.min.js文件,然后搜索target="_blank",将它替换为空字符串
打开/myProject/php/typecho/usr/themes/Joe-master/archive.php文件,然后搜索target="_blank",将它替换为空字符串
Typecho独立页面实现跳转其他网站
1.新建 PHP 文件:jump.php
代码如下:
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php
/**
* jump
*
* @package custom
*/
?>
<meta http-equiv="refresh" content="3;url='https://seer.cool'"> 2.将文件上传至当前网站使用主题根目录
3.网站后台新建独立页面,使用模板。

4.独立页面模板处选择刚才创建的文件

[meta http-equiv="refresh" content="0; url="] 是什么意思?
页面定期刷新,如果加 url 的,则会重新定向到指定的网页,content 后面跟的是时间(单位秒),把这句话加到指定网页的里
一般也用在实时性很强的应用中,需要定期刷新的
如新闻页面,论坛等,不过一般不会用这个,都用新的技术比如 ajax 等
[meta http-equiv="refresh" content="0; url="]经过一段时间转到另外某个页面
[content="0;URL=",]这里 0 表示没有延时,直接跳转到后面的 URL;把 0 改成 1,则延时 1 秒后跳转。
评论 (0)