Safir Posted January 17, 2010 Share Posted January 17, 2010 This should be the URL of my prestashop shop: http://www.homestyle.netne.net/prestashopbut it just redirects me to my main site's homepage. All the other parts of the shop work (for example, from http://www.homestyle.netne.net/prestashop/404.php, you can navigate to all other parts of the shop) EXCEPT the homepage. I don't know much about how prestashop works, but I am guessing that it might be a problem with the index.php file..? So here is the code: <?php 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; ?> (opened using gedit)The only things I've done to the website since installing it are adding categories and products, uninstalling 2 of the default payment modules, set default currency to USD, disabled euro and pound, restricted ordering to USA, and disabled gift-wrapping.Just in case it's relevant, I guess I should say that I had installed prestashop previously, but then I deleted that prestashop file from my database and uploaded a fresh one, reinstalling it. During installing, it -did- say that a database using the ps_ prefix was already taken, so there are likely leftover files from the initial installation still on the server..?Any advice at all is appreciated! Link to comment Share on other sites More sharing options...
davet85 Posted January 17, 2010 Share Posted January 17, 2010 In the preferences tab in the back office, have you set the PS directory to "/prestashop/"? By default I think it expects prestashop to be installed in the root directory. Link to comment Share on other sites More sharing options...
Safir Posted January 17, 2010 Author Share Posted January 17, 2010 In the preferences tab in the back office, have you set the PS directory to "/prestashop/"? By default I think it expects prestashop to be installed in the root directory. Oh shoot.. It was /prestashop/ already, so I tried setting it to /public_html/prestashop/ (since that's the folder that holds the prestashop folder) and now I can't make changes to my admin panel anymore (404 page doesn't exist). >_<EDIT: ok I changed it back to /prestashop/ successfully, but I'm still stuck with my original problem. ): Link to comment Share on other sites More sharing options...
davet85 Posted January 17, 2010 Share Posted January 17, 2010 ok, you need to amend settings.inc.php in the config folder, the first line of that will look like "define('__PS_BASE_URI__', '/public_html/prestashop/');", if you delete the /public_html and reupload it'll go back to how it was Link to comment Share on other sites More sharing options...
Safir Posted January 17, 2010 Author Share Posted January 17, 2010 ok, you need to amend settings.inc.php in the config folder, the first line of that will look like "define('__PS_BASE_URI__', '/public_html/prestashop/');", if you delete the /public_html and reupload it'll go back to how it was Yeah thanks. n w n That's what I ended up doing.. but the original problem remains..! ):Thank you so much for your help so far, by the way. >_<; Link to comment Share on other sites More sharing options...
davet85 Posted January 17, 2010 Share Posted January 17, 2010 the index.php file you refer to in your first post is the one from the theme I think, and as your other pages work we know thats ok, I'll rack my brains and see if I can think of anything else. Link to comment Share on other sites More sharing options...
Safir Posted January 17, 2010 Author Share Posted January 17, 2010 the index.php file you refer to in your first post is the one from the theme I think, and as your other pages work we know thats ok, I'll rack my brains and see if I can think of anything else. Thanks for your help! n w n;; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now