Prestabob Posted May 17, 2012 Share Posted May 17, 2012 Hi Folks, sorry if this has been asked before - I'm a complete newbie to Prestashop. I'm moving my Prestashop install from its install folder, and I want to move it into the main site directory. When I checked the settings.inc.php file I expected it to have a base url similar to (1) below. Instead it has (2) below. (1) define('__PS_BASE_URI__', 'root/store/'); (2) define('__PS_BASE_URI__', '/store/'); Does this mean I just remove the '/store/' and change it to '/' for the main directory seeing as there's no 'root'? Also in the BO under preferences> Seo & Url's in the URLs setup the PS directory is /store/, will this change when the settings.inc.php file has been up dated or does it need to be done in the BO? If so what goes in this field? Apologies again for asking such basic questions, but we all have to start somewhere! Link to comment Share on other sites More sharing options...
El Patron Posted May 17, 2012 Share Posted May 17, 2012 Hi Folks, sorry if this has been asked before - I'm a complete newbie to Prestashop. I'm moving my Prestashop install from its install folder, and I want to move it into the main site directory. When I checked the settings.inc.php file I expected it to have a base url similar to (1) below. Instead it has (2) below. (1) define('__PS_BASE_URI__', 'root/store/'); (2) define('__PS_BASE_URI__', '/store/'); Does this mean I just remove the '/store/' and change it to '/' for the main directory seeing as there's no 'root'? Yes Also in the BO under preferences> Seo & Url's in the URLs setup the PS directory is /store/, will this change when the settings.inc.php file has been up dated or does it need to be done in the BO? If so what goes in this field? It will not change automatically, you need to update with your conical URL and conical SSL URL, www.yoururl.com Apologies again for asking such basic questions, but we all have to start somewhere! Link to comment Share on other sites More sharing options...
Prestabob Posted May 17, 2012 Author Share Posted May 17, 2012 Thanks for the quick reply elpatron, That's cleared up what I need to do in the settings.inc file, but in the PS Directory field of the back office it says 'Name of the PrestaShop directory on your Web server, bracketed by forward slashes (e.g., /shop/)', does this not need a folder name as is currently the case (it has /store/ in this field).? Link to comment Share on other sites More sharing options...
El Patron Posted May 17, 2012 Share Posted May 17, 2012 Thanks for the quick reply elpatron, That's cleared up what I need to do in the settings.inc file, but in the PS Directory field of the back office it says 'Name of the PrestaShop directory on your Web server, bracketed by forward slashes (e.g., /shop/)', does this not need a folder name as is currently the case (it has /store/ in this field).? Hi, if your site files are in your root directory then you settings.inc.php would be '/' Link to comment Share on other sites More sharing options...
Prestabob Posted May 17, 2012 Author Share Posted May 17, 2012 Hi, if your site files are in your root directory then you settings.inc.php would be '/' So does that mean that the PS Directory field in the Back Office is telling Prestashop where the settings.inc.php file is located? Thanks for your patience...! Link to comment Share on other sites More sharing options...
El Patron Posted May 17, 2012 Share Posted May 17, 2012 So does that mean that the PS Directory field in the Back Office is telling Prestashop where the settings.inc.php file is located? Thanks for your patience...! Hi, the PS Directory tells PrestaShop where your entire PS installation resides. Link to comment Share on other sites More sharing options...
Prestabob Posted May 17, 2012 Author Share Posted May 17, 2012 Hi, the PS Directory tells PrestaShop where your entire PS installation resides. So the setting should be www.myshop.com or '/'?? Link to comment Share on other sites More sharing options...
El Patron Posted May 17, 2012 Share Posted May 17, 2012 (edited) So the setting should be www.myshop.com or '/'?? Here is what you settings would look like minus except a different URL. http://screencast.com/t/s1j69hD5cQZ8 Edited May 17, 2012 by elpatron (see edit history) 1 Link to comment Share on other sites More sharing options...
Prestabob Posted May 17, 2012 Author Share Posted May 17, 2012 Ahh - perfect. Thanks for that elpatron. That clears everything up for me. I'm going to try moving all files to the root later today, if you hear a scream ignore it, its just me messing things up! Thanks again for your help 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 17, 2012 Share Posted May 17, 2012 Hi PrestaBob, In the future, you can always find our guide to moving your site here. Happy selling! -Mike Link to comment Share on other sites More sharing options...
Prestabob Posted May 17, 2012 Author Share Posted May 17, 2012 Hi Mike, I did actually print off that section of the guide, I'll be going through it step by step later today to move a test site, and using the info that elpatron gave me. Hopefully there won't be a big bang! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 17, 2012 Share Posted May 17, 2012 Hi Mike, I did actually print off that section of the guide, I'll be going through it step by step later today to move a test site, and using the info that elpatron gave me. Hopefully there won't be a big bang! Good luck! Keep us posted! -Mike Link to comment Share on other sites More sharing options...
Prestabob Posted May 17, 2012 Author Share Posted May 17, 2012 OK Folks, I successfully moved a test shop to the main root folder and had no problems at all, in fact all I needed to do was change the settings.inc.php file. When I logged into the Back Office to update the PS Directory setting, it already had the required / (instead of /store/). I then deleted everything except the index.php files in the following folders: /tools/smarty/cache /tools/smarty/compile /tools/smarty_v2/cache /tools/smarty_v2/cache As I say, all looks successful and now I'm confident enough to have a go at moving my full Prestashop installation - thanks a lot for your help...! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 17, 2012 Share Posted May 17, 2012 Thanks for the update Prestabob, I'm glad you were able to resolve this! I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
Recommended Posts