你好,把这段代码加到404.php的顶部。代码的意思是3秒跳回首页。

 

 

<?php if(is_404()): ?> 

<meta http-equiv="refresh" content="3;url=<?php echo get_option('home'); ?>"> 

<?php endif; ?>

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: