Search This Blog

2016/12/08

Page Redirect/画面遷移/页面跳转

By meta tag:
<meta http-equiv="refresh" content="seconds;URL=url">

Example:
<meta http-equiv="refresh" content="0;URL=https://randinblogger.blogspot.com">

By JavaScript:
window.location = "url";
window.location.href = "url";
window.location.assign = "url";
window.location.replace = "url";

By .htaccess file:
mod_rewrite need be actived.
Redirect 301 / url 

No comments :

Post a Comment