Home 게시판 커뮤니티 Q&A AUTOSET 에서 테스트 시 index.html 을 불러옴

2개 답변, 2 voices Last updated by Avatar of 김시진김시진 5 years, 4 months 전
  • Avatar of 김시진김시진
    Participant
    @caesar
    #53793

    서버에 있는 소스를 로컬에 올려보고 있습니다.

     

    예를 들어

    서버 주소 http://a.bcd.com 이렇게 주소창에 치면

    물론 로컬 호스트 DB 모두 위처럼 수정했고요

     

    워드프레스 / 루트 위치에 index.html 파일이 있는데 거기 안에 텍스트 “abcd” 가 이렇게 있으면  그게 화면에 보입니다.

    기존에  화면이 안나오고 왜 그런건가요?  워드프레스로 만들어진 테마를 안가져오고 왜 index.html 파일을 가져오는 건가요?

     

     

    .htaccess 파일은 이렇게 되어있습니다.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Avatar of 김시진
    안녕하세요
    Avatar of 워드크래커워드크래커
    Participant
    @wordcracker7
    #53796

    루트 폴더에 index.html과 index.php 파일이 동시에 있다면 index.html 파일이 우선권을 가집니다.

    Apache의 경우 .htaccess 파일에서 우선순위를 변경할 수 있습니다.

    DirectoryIndex index.html index.shtml index.php index.htm default.html Default.htm default.html Default.html default.shtml Default.shtml page1.html index.pl index.cgi index.php3 index.phtml home.htm home.html home.shtml index.wml

    https://stackoverflow.com/questions/7873634/why-does-index-html-have-priority-over-index-php

     

     

    Avatar of 워드크래커

    • 워드프레스 정보 제공 블로그: Visit
    • 워드프레스와 관련하여 문제 해결이 필요한 경우 문의해주세요.

    Avatar of 김시진김시진
    Participant
    @caesar
    #53802

    답변 감사합니다. 그냥 index.html 파일 이름을 바꿔서 해결했습니다.

3 글 보임 - 1에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.