홈페이지를 다 만들어 놓고
index.php 파일을 모르고 지워버렸는데
xe 코어에 있는 파일로 대체해서 접속되고 왠만한 기능이 다 되도록 해놨습니다
그런데 문제는 위젯페이지 수정 등을 할 때 새 창에서 홈페이지가 떠버립니다
다시 index.php파일을 정상으로 돌릴 수는 없을까요
태그목록
첨부파일 목록
여기에 파일을 끌어 놓거나 파일 첨부 버튼을 클릭하세요.
파일 크기 제한 : 0MB (허용 확장자 : *.*)
파일 업로드 중... (0%)
*별로*
index.php에 아무것도 고치지 않았다면, xe core를 받아 풀어서 index.php만 서버에 카피하면 됩니다. 커스텀 index.php라면 서버업체에 문의하시면 보통 복구됩니다.
아님 아래의 내용를 카피&페이스트 해서 index.php 파일을 생성하셔도 되고요.
-------------cut here------------------------
<?php
/**
* @file index.php
* @author NHN (developers@xpressengine.com)
* @brief Start page
*
* Find and create module object by mif, act in Request Argument \n
* Set module information
* @mainpage XpressEngine
* @section intro introduction
* XE is an opensource and being developed in the opensource project. \N
* For more information, please see the link below.
* - Official website: http://www.xpressengine.com(korean), http://www.xpressengine.org(english)
* - SVN Repository: http://xe-core.googlecode.com/svn/
* \n
* "XpressEngine (XE)" is free software; you can redistribute it and/or \n
* modify it under the terms of the GNU Lesser General Public \n
* License as published by the Free Software Foundation; either \n
* version 2.1 of the License, or (at your option) any later version. \n
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
**/
* @brief Declare constants for generic use and for checking to avoid a direct call from the Web
define('__XE__', TRUE);
define('__ZBXE__', TRUE); // deprecated : __ZBXE__ will be removed. Use __XE__ instead.
* @brief Include the necessary configuration files
require dirname(__FILE__) . '/config/config.inc.php';
* @brief Initialize by creating Context object
* Set all Request Argument/Environment variables
$oContext = &Context::getInstance();
$oContext->init();
* @brief If default_url is set and it is different from the current url, attempt to redirect for SSO authentication and then process the module
if($oContext->checkSSO())
{
$oModuleHandler = new ModuleHandler();
if($oModuleHandler->init())
$oModule = &$oModuleHandler->procModule();
$oModuleHandler->displayContent($oModule);
}
$oContext->close();
/* End of file index.php */
/* Location: ./index.php */
-------------------------------------------end
댓글 2012-09-16
index.php에 아무것도 고치지 않았다면, xe core를 받아 풀어서 index.php만 서버에 카피하면 됩니다. 커스텀 index.php라면 서버업체에 문의하시면 보통 복구됩니다.
아님 아래의 내용를 카피&페이스트 해서 index.php 파일을 생성하셔도 되고요.
-------------cut here------------------------
<?php
/**
* @file index.php
* @author NHN (developers@xpressengine.com)
* @brief Start page
*
* Find and create module object by mif, act in Request Argument \n
* Set module information
*
* @mainpage XpressEngine
* @section intro introduction
* XE is an opensource and being developed in the opensource project. \N
* For more information, please see the link below.
* - Official website: http://www.xpressengine.com(korean), http://www.xpressengine.org(english)
* - SVN Repository: http://xe-core.googlecode.com/svn/
* \n
* "XpressEngine (XE)" is free software; you can redistribute it and/or \n
* modify it under the terms of the GNU Lesser General Public \n
* License as published by the Free Software Foundation; either \n
* version 2.1 of the License, or (at your option) any later version. \n
* \n
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* \n
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
**/
/**
* @brief Declare constants for generic use and for checking to avoid a direct call from the Web
**/
define('__XE__', TRUE);
define('__ZBXE__', TRUE); // deprecated : __ZBXE__ will be removed. Use __XE__ instead.
/**
* @brief Include the necessary configuration files
**/
require dirname(__FILE__) . '/config/config.inc.php';
/**
* @brief Initialize by creating Context object
* Set all Request Argument/Environment variables
**/
$oContext = &Context::getInstance();
$oContext->init();
/**
* @brief If default_url is set and it is different from the current url, attempt to redirect for SSO authentication and then process the module
**/
if($oContext->checkSSO())
{
$oModuleHandler = new ModuleHandler();
if($oModuleHandler->init())
{
$oModule = &$oModuleHandler->procModule();
$oModuleHandler->displayContent($oModule);
}
}
$oContext->close();
/* End of file index.php */
/* Location: ./index.php */
-------------------------------------------end