URI 중 /kngil/skin 반복제거. php 확장자 노출 제거

This commit is contained in:
Lectom C Han
2026-02-05 12:09:12 +09:00
parent 8fa50e6d0d
commit 8501529eb6
16 changed files with 50 additions and 37 deletions

View File

@@ -2,5 +2,5 @@
session_start();
session_destroy();
header('Location: /kngil/skin/index.php');
header('Location: /');
exit;

View File

@@ -14,7 +14,7 @@ if (session_status() === PHP_SESSION_NONE) {
if (empty($_SESSION['login'])) {
echo "<script>
alert('로그인 후 이용 가능합니다.');
location.href = '/kngil/skin/qa_list.skin.php';
location.href = '/qa_list.skin';
</script>";
exit;
}
@@ -92,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && ($_POST['action'] ?? '') === 'delet
$pdo->commit();
header("Location: /kngil/skin/qa_list.skin.php");
header("Location: /qa_list.skin");
exit;
} catch (Exception $e) {

View File

@@ -1,7 +1,7 @@
<?php
/**
* Q&A 리스트 컨트롤러
* - 스킨: /kngil/skin/qa_list.skin.php
* - 스킨: /kngil/skin/qa_list.skin.php (URL: /qa_list.skin)
*/
ini_set('display_errors', 1);

View File

@@ -17,7 +17,7 @@ if (session_status() === PHP_SESSION_NONE) {
if (empty($_SESSION['login'])) {
echo "<script>
alert('로그인이 필요합니다.');
location.href = '/kngil/skin/qa_list.skin.php';
location.href = '/qa_list.skin';
</script>";
exit;
}