서버 측 포함을 사용하여 파일을 구성했습니다.서버 측에 중첩 호출을 할 수 없습니다.
중첩 된 파일이 작동하지 않는 것 같습니다. 예를 들어 : -
index.shtml -이
<!doctype html>
<html lang="en">
<!--#include virtual="partials/head.shtml"-->
<body>
<!--#include virtual="partials/components/ads/horizontal-banner.shtml"-->
<div id="site-wrapper">
<header id="site-header">
<!--#include virtual="partials/header.shtml"-->
</header>
<div id="site-body">
<!--#include virtual="partials/pages/home.shtml"-->
</div>
<footer id="site-footer">
<!--#include virtual="partials/footer.shtml"-->
</footer>
</div>
<!--#include virtual="partials/common.shtml"-->
home.shtml 내부에 잘 작동은되고 다음 다른 통화
<!--#include virtual="../components/newsletter.shtml"-->
있다 프로젝트 구조 : -
아파치의 설명서에서3210project
- css
- assets
- js
- partials
- components
- ads
horizontal-banner.shtml
vertical-banner.shtml
newsletter.shtml
help.shtml
- pages
home.shtml
about.shtml
header.shtml
footer.shtml
head.shtml
common.shtml
index.shtml
xampp 안에 htdocs 내부에 폴더를 배치했을 때 작동했습니다. 일반 디렉토리에 배치하면 작동하지 않습니다. 왜 그런지 모르겠다 .... –
아파치의 액세스 및 오류 로그 파일을 보려고 했습니까? 위치가 문제가 있으면 잘못된 경로에 대한 정보가 있어야합니다. –