Jump to content

[SOLVED] PS_BASE_URI


Recommended Posts

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

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

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

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

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

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

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

  • Like 1
Link to comment
Share on other sites

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

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

×
×
  • Create New...