时间:2023-02-22 21:24:01 | 来源:建站知识
时间:2023-02-22 21:24:01 来源:建站知识
域名跳转的几种方法:server{ listen 80; server_name test.cc; root /tmp/test; location ~ .*{ if(!-e $request_filename){ rewrite ^ http://www.aliyun01.com/blog/Api_ele redirect; } }}
当访问http://test.cc/uri, 如果uri资源在项目中不存在,就会重定向http://www.aliyun01.com/blog/...网页server{ listen 80; server_name test.cc; root /tmp/test; location ~ .*{ if(!-e $request_filename){ rewrite ^ //blog/Api_ele break; proxy_pass http://www.aliyun01.com; } }}
<script language="javascript" type="text/javascript">window.location.href="http://www.aliyun01.com";</script>
<html><frameset framespacing="0" border="0" rows="0" frameborder="0"><frame name="main" src="https://aliyun01.com" scrolling="auto" noresize></frameset></html>
关键词:方法