Jump to content

Local server duplicate redirects to live server


Juanaco

Recommended Posts

Hi

Recently I have made a duplicate of my prestashop website in order to make some testings, I went throught all the process but when I try to access to my local server using Xampp it redirects all the time to my live server instead to run my local server, I've modified PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SS values to my local site name but it doesn't work, what am I doing wrong?

Link to comment
Share on other sites

Hi, To migrate your website from online to local

 

1 -> go to "www/your-project/app/config/parameters.php"

change this

'database_host' => 'localhost'

'database_name' => 'your-databse-name',

'database_user' => 'root' //(for me)

'database_passwors' => '' //(for me)

 

2 : go to your database and open table 'ps_shop_url'

change 'domain' to 'localhost' (or 'your-project-name.test' if you use laragon )

change 'domain_ssl' to 'localhost' (or 'your-project-name.test' if you use laragon )

3: delete everything in 'yourproject/var/cache'

4: go to your database and open table 'ps_configuration'

change 'PS_SHOP_DOMAIN' to 'localhost' (or 'your-project-name.test' if you use laragon )

change 'PS_SHOP_DOMAIN_SSL' to 'localhost' (or 'your-project-name.test' if you use laragon )

5 : ReRun your localserver and your good to go.

 

Hope this help, have a good day.

 

 

 

Link to comment
Share on other sites

28 minutes ago, ZiedDams said:

Hi, To migrate your website from online to local

 

1 -> go to "www/your-project/app/config/parameters.php"

change this

'database_host' => 'localhost'

'database_name' => 'your-databse-name',

'database_user' => 'root' //(for me)

'database_passwors' => '' //(for me)

 

2 : go to your database and open table 'ps_shop_url'

change 'domain' to 'localhost' (or 'your-project-name.test' if you use laragon )

change 'domain_ssl' to 'localhost' (or 'your-project-name.test' if you use laragon )

3: delete everything in 'yourproject/var/cache'

4: go to your database and open table 'ps_configuration'

change 'PS_SHOP_DOMAIN' to 'localhost' (or 'your-project-name.test' if you use laragon )

change 'PS_SHOP_DOMAIN_SSL' to 'localhost' (or 'your-project-name.test' if you use laragon )

5 : ReRun your localserver and your good to go.

 

Hope this help, have a good day.

 

 

 

Doesn't work, I have everything configured and it displays me this error:

image.png.53db5dea11e17e5e7624598b8274a1dc.png

Link to comment
Share on other sites

Just now, Juanaco said:

http://localhost:8080/asalvoReplica/admin735cmplmg/

the folder is "asalvoreplica", don't know if the upper case letter can be problematic, this is the url for accesing the backoffice

i think it not case sensitivity problem , i wonder if it's the same problem if you use http://localhost:8080/asalvoReplica

and i want to know what local server you are using ?

Link to comment
Share on other sites

4 minutes ago, ZiedDams said:

this is mean it work but only open the backoffice  or you mean the dashboard of the local server ?

 

It redirects to dashboard of the local server from frontoffice, backoffice shows the Not Found error 

Link to comment
Share on other sites

On 8/30/2022 at 11:02 AM, Juanaco said:

Doesn't work, I have everything configured and it displays me this error:

image.png.53db5dea11e17e5e7624598b8274a1dc.png

Looks like you are trying to use SSL while your XAMPP is not configured accrodingly. Change the SSL settings in your database in table ps_confifuration to NULL

grafik.png.41156201d75fcdeaff726b0862b8178d.png

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...