時間:2023-02-22 21:24:01 | 來源:建站知識
時間:2023-02-22 21:24:01 來源:建站知識
域名跳轉(zhuǎn)的幾種方法:server{ listen 80; server_name test.cc; root /tmp/test; location ~ .*{ if(!-e $request_filename){ rewrite ^ http://www.aliyun01.com/blog/Api_ele redirect; } }}
當(dāng)訪問http://test.cc/uri, 如果uri資源在項目中不存在,就會重定向http://www.aliyun01.com/blog/...網(wǎng)頁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>
關(guān)鍵詞:方法
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。