nugawiki

./front-end

URL Redirect 리다이렉트

업데이트 2022-06-25 1분 소요 /FRONT-END #HTML#JS

HTML Meta 태그

<html>
    <meta http-equiv="refresh" content="0; url=https://blog.miyam.net"></meta>
</html>

JavaScript

window.location.href = 'http://www.abc.com/';
  • 주소 비교 후 이동
if ( window.location == 'http://www.abc.com/' ) {
  window.location.href='http://www.codingfactory.net/';
}