Jump to content

How can I stop the redirection to /var/home/prestashop/index.php ?


Recommended Posts

Hi,

 

We are encountering difficulties, so we would like to have 2 versions of prestashop. One on which to test new stuff, and one on which we would only do modifications once we are sure we know what we are doing. They would each have their own database.

 

We ran the installation in 2 folders: /var/www/prestashop (the test version) and /var/www/ma-hotte-deco (the definitive version).

 

It seemed to go alright until we tried the definitive version. As soon as we point a browser to it, we get redirected to the test version.

 

I looked for what was causing the redirection but I could not find it.

 

I replaced every single instance of var/www/prestashop with var/www/ma-hotte-deco in all files in /ma-hotte-deco and in subdirectories.

 

I replaced every single instance of http://178.170.117.59/prestashop with http://178.170.117.59/ma-hotte-deco in all files in /ma-hotte-deco and in subdirectories.

 

I found a variable called "baseDir". It was defined as:

var baseDir = '<?php echo $_smarty_tpl->tpl_vars['content_dir']->value;?>;

 

I replaced both occurences of that with:

var baseDir = 'http://178.170.117.59/ma-hotte-deco';

 

Same for a definition of "baseUri".

 

In var/www/ma-hotte-deco/config/defines.inc.php we now have:

define('_PS_ROOT_DIR_', 'var/www/ma-hotte-deco/');

 

Still, when we point a browser to http://178.170.117.59/ma-hotte-deco/index.php we are immedialety redirected to http://178.170.117.59/prestashop/index.php

 

What have I missed?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...