madox-nola Posted July 3, 2013 Share Posted July 3, 2013 I am new to Prestashop love the software... I have a website what has it's own index page and the store is in it's own folder, but not the root. When I try to view my store it is taking me to the root page. The store is in a path domain/store/index.php When I type domain/store/index.php it take me to the root file of my website. This is wrong. I think I need to edit the file domain/store/index.php file. I was looking in the file index.php within the store folder: header ("location: ../"; Is this why my shop is being redirected to the root folder of my website and not showing the store. If so, what should I put? header ("location: /store"; It tells me The page isn't redirecting properly Any help would be great. Link to comment Share on other sites More sharing options...
El Patron Posted July 3, 2013 Share Posted July 3, 2013 try this: 1. clear browser cookies and cache and retest if this does not solve the problem 2. back office-->preferences-->seo and urls scroll down to 'Set shop URL' and make sure that your base uri = /store/ hope one of these works for you Link to comment Share on other sites More sharing options...
madox-nola Posted July 3, 2013 Author Share Posted July 3, 2013 The path for the url in the store is correct. (/store/) Link to comment Share on other sites More sharing options...
madox-nola Posted July 3, 2013 Author Share Posted July 3, 2013 I was thinking is would be in this file index.php (would it be in the header below)? here is the source: <?php /* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 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/afl-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 [email protected] 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 <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 6844 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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: store"); exit; ?> Link to comment Share on other sites More sharing options...
madox-nola Posted July 9, 2013 Author Share Posted July 9, 2013 I couldn't get this fix, so I had to install in a sub directory. Link to comment Share on other sites More sharing options...
BWT Posted July 9, 2013 Share Posted July 9, 2013 Did reinstalling it work? Do you have any redirects set-up? Link to comment Share on other sites More sharing options...
madox-nola Posted July 9, 2013 Author Share Posted July 9, 2013 I tried to reinstall but I couldn't view the store, just the backend. Link to comment Share on other sites More sharing options...
Recommended Posts