<?php if(is_dir(__DIR__."/../../badamall_pds")){ $CONF_PDS_DIR = __DIR__."/../../badamall_pds"; }else if(is_dir(__DIR__."/../pds")){ $CONF_PDS_DIR = __DIR__."/../pds"; } if($CONF_PDS_DIR && is_file($CONF_PDS_DIR."/etc/404_url/".$_SERVER['HTTP_HOST'].".txt")){ $page404_url = file_get_contents($CONF_PDS_DIR."/etc/404_url/".$_SERVER['HTTP_HOST'].".txt"); $page404_url = trim($page404_url); header("Location:".$page404_url); exit; }
header($_SERVER['SERVER_PROTOCOL']." 404 Not Found",false,404);
 ?>
<!DOCTYPE html>
<html lang="ko">
<head>
  <meta charset="utf-8">
  <title>404 Not Found</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    * { box-sizing: border-box; }
    body{
      margin:0;
      font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
      background:#f5f6f8;
      color:#222;
      display:flex;
      align-items:center;
      justify-content:center;
      min-height:100vh;
    }
    .wrap{
      width:min(520px, 100%);
      background:#fff;
      border:1px solid #e1e4ea;
      border-radius:14px;
      padding:32px 28px;
      text-align:center;
      box-shadow:0 10px 30px rgba(0,0,0,.06);
    }
    h1{
      margin:0 0 14px;
      font-size:22px;
      font-weight:700;
    }
    p{
      margin:0 0 18px;
      font-size:15px;
      line-height:1.6;
      color:#555;
      word-break:keep-all;
    }
    .actions{
      margin-top:20px;
      display:flex;
      justify-content:center;
      gap:12px;
      flex-wrap:wrap;
    }
    a{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:140px;
      padding:12px 16px;
      border-radius:10px;
      text-decoration:none;
      font-weight:600;
      border:1px solid #d0d4dc;
      color:#111;
      background:#fff;
    }
    a.primary{
      background:#111;
      color:#fff;
      border-color:#111;
    }
    .code{
      margin-top:16px;
      font-size:12px;
      color:#888;
    }
  </style>
</head>
<body>
  <main class="wrap">
    <h1>요청하신 페이지가 존재하지 않습니다.</h1>
    <p>
      URL이 변경되었거나 삭제된 페이지일 수 있습니다.<br>
      계속 문제가 발생하면 관리자에게 문의해주세요.
    </p>

    <div class="actions">
      <a class="primary" href="/">홈으로</a>
      <a href="javascript:history.back()">이전 페이지</a>
    </div>

    <div class="code">Error Code : 404</div>
  </main>
</body>
</html>
