1.打开你的typecho安装目录:
例如: /www/wwwroot/你的博客.com/usr/themes/
如果你使了第三方主题那么打开: /www/wwwroot/你的博客.com/usr/themes/你使用的typecho主题/
新建一个php文件如:娶个名字.php
粘贴以下代码:
<?php
/**
* 这里填个名字便于区分
*
* @package custom
*/
?>
<meta http-equiv="refresh" content="0;url='https://你的网站.com'">
[meta http-equiv="refresh" content="0; url="] 解释:
content="0;里面可以加延时,如content="3;就是3秒后跳转,0就是马上跳转
评论 (0)