💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
【frame包住目标网站】 ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>frame</title> </head> <frameset rows="100%,*" frameborder="no" border="0" framespacing="0"> <frame src="https://www.baidu.com" name="mainFrame" noresize="noresize" id="mainFrame"/> </frameset> <noframes> <body> </body> </noframes> </html> ~~~ 【wordpress上的index.php操作】 ~~~ <?php if(isset($_GET['new'])): require('index.html'); // header('Location: 当前域名/index.html'); exit(); else: define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); endif; ~~~ 【备注】: 如果在wordpress上用iframe,可以重命名index.php,然后直接上传index.html。 更换根目录的wordpress,最好不要直接删除,可以压缩目标wordpress,将目标wordpress直接在根目录解压,替换被替换的wordpress,这样可以避免删除其他不应该删除的文件。 【重定向】 【很快回來】 ~~~ <?php if(!isset($_GET['代號'])){ header('Location: http://網址/comingsoon/'); exit; } ?> ~~~ 加入這段代碼,輸入網址的時候就會重定向到comingsoon這個文件夾裏面,而在網址后面加上”?代號“,就可以進入原來根目錄下的網站。