前端代碼 :注此方法適用默認訪問html爲此頁面,端口改成80後訪問瀏覽器目錄就會只剩下ip+forLogin.html 再經過nginx實現指定後綴隱藏後就隱藏forLogin.html 只剩下iphtml
<html> <head> <title> 用戶登陸 </title> <meta http-equiv="content-type" content="textml; charset=utf-8"> </head> <!-- 框架,主要是將標題欄鎖定在起始頁面的地址,其餘請求不改變標題欄網址,打到隱藏效果 --> <frameset id="mm" border="0" frameBorder="no" frameSpacing="0" rows="100%"> <frame name="sdd" scrolling="no" src="index.html" noresize="noresize"> </frame> </frameset> <script></script> </html>
注:(未經測試)前端