728x90
소스 하나에 세 개의 domain 요소가 있다면,
다음과 같이 해주면 된다.
[index.html]
<html>
<head>
<title>RARARARARARA</title>
<script>
var nowURL = window.location.href;
if(nowURL.includes("a.com"))
{
window.location.href="http://a.com/test/main1.do";
console.log(nowURL)
}
else if(nowURL.includes("b.com"))
{
window.location.href="http://b.com/test/main2.do";
console.log(nowURL)
}
else if(nowURL.includes("c.com"))
{
window.location.href="http://c.com/test/main3.do";
console.log(nowURL)
}
</script>
</head>
<body>
<h1></h1>
</body>
</html>
'WEB-SERVER > OHS & JBCS & Apache' 카테고리의 다른 글
| [OHS 12c R2] OHS 기동 실패 (0) | 2024.05.29 |
|---|---|
| [OHS12c] odl_rotatelogs 를 통한 로그 로테이션 (0) | 2024.05.22 |
| [Apache2.4] systemctl start httpd가 안 된다면.. (0) | 2024.02.22 |
| [Apache2.4] mod_jk 관련 연동 파일 및 옵션 정리 (0) | 2024.02.22 |
| [OHS_12c/Solaris] 장비의 메모리가 해소되지 않는 현상 (0) | 2024.01.03 |