Jump to content
bikeerrr

Obsah souboru index.php - špatně se mi překopíroval a stránky nejdou

Recommended Posts

Zdravím,

mám takový problém že po přesunu stránek se mi asi špatně nakopíroval soubor index.php a nejde hlavní stránka... do adminu se v pohodě dostanu... dá se obsah toho souboru odněkud překopírovat a abych zkusil jestli to pojede v pořádku? V tom mém souboru je text viz:

<?php
/**
 * 2007-2017 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2017 PrestaShop SA
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

header("Location: ../");
exit;

Díky za případné informace....

Share this post


Link to post
Share on other sites

Prosim, napis umiestnenie index.php o ktorom pises a verziu PrestaShopu.

Share this post


Link to post
Share on other sites

Ak je to koren PrestaShopu, obsah ma vyzerat takto:

<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2017 PrestaShop SA
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

require(dirname(__FILE__).'/config/config.inc.php');
Dispatcher::getInstance()->dispatch();

 

Share this post


Link to post
Share on other sites

To jsem to zmastlil... Je to PrestaShop 1.7.2.1 a ano přímo index.php v hlavním adresáři...

Share this post


Link to post
Share on other sites

Můžete soubor překopírovat / přepsat z původního ZIP souboru

Share this post


Link to post
Share on other sites

nojo to mě vlastně nenapadlo... ach jo... omlouvám se ale děkuji za odpovědi... zkopíroval jsem obsah od uživatele Caleydon a už to funguje.... děkuji a příště se polepším

  • Like 1

Share this post


Link to post
Share on other sites
27 minutes ago, webplus said:

Můžete soubor překopírovat / přepsat z původního ZIP souboru

Da sa samozrejme aj tak, avsak vtedy by sa nenaucil, ze v index.php v koreni PrestaShopu je iny kod, ako v ostatnych priecinkoch CMS, kde sluzi iba na presmerovanie z bezpecnostnych dovodov.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More