Juanaco Posted August 30, 2022 Share Posted August 30, 2022 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 More sharing options...
webprog Posted August 30, 2022 Share Posted August 30, 2022 Hello, clear cache and restart Friendly URL: Traffic & SEO->SEO & URLs Link to comment Share on other sites More sharing options...
ZiedDams Posted August 30, 2022 Share Posted August 30, 2022 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 More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 11 minutes ago, webprog said: Hello, clear cache and restart Friendly URL: Traffic & SEO->SEO & URLs Hi, can't access my backoffice, it also reddirects to the live back office 😔 Link to comment Share on other sites More sharing options...
webprog Posted August 30, 2022 Share Posted August 30, 2022 (edited) 6 minutes ago, Juanaco said: Hi, can't access my backoffice, it also reddirects to the live back office 😔 Ok, see ps_shop_url table then: SELECT * FROM ps_shop_url p; You can clear cache manually: clear /var/cache folder Edited August 30, 2022 by webprog (see edit history) Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 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: Link to comment Share on other sites More sharing options...
ZiedDams Posted August 30, 2022 Share Posted August 30, 2022 Just now, Juanaco said: Doesn't work, I have everything configured and it displays me this error: what is the url in the browser ? and i want to know is that also the same problem for the backoffice ? Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 1 minute ago, ZiedDams said: what is the url in the browser ? and i want to know is that also the same problem for the backoffice ? 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 Link to comment Share on other sites More sharing options...
ZiedDams Posted August 30, 2022 Share Posted August 30, 2022 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 More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 2 minutes ago, ZiedDams said: 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 ? How can i know the local server? I have the same problem with hte other url Link to comment Share on other sites More sharing options...
ZiedDams Posted August 30, 2022 Share Posted August 30, 2022 i mean you must know what is your local server, it should be displayed in the same place you run and stop your server .. any screenshots ? Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 Also when i try to access the front office, it redirects me to the dashboard 🤔 Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 4 minutes ago, ZiedDams said: i mean you must know what is your local server, it should be displayed in the same place you run and stop your server .. any screenshots ? You mean this? Link to comment Share on other sites More sharing options...
ZiedDams Posted August 30, 2022 Share Posted August 30, 2022 Just now, Juanaco said: Also when i try to access the front office, it redirects me to the dashboard 🤔 this is mean it work but only open the backoffice or you mean the dashboard of the local server ? Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 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 More sharing options...
ZiedDams Posted August 30, 2022 Share Posted August 30, 2022 did you clear the cache ? Just now, Juanaco said: You mean this? your LocalServer is Xampp Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 4 minutes ago, ZiedDams said: did you clear the cache ? your LocalServer is Xampp Ok ok, in the OP i told that i was accesing my local using Xampp, correct Link to comment Share on other sites More sharing options...
Juanaco Posted August 30, 2022 Author Share Posted August 30, 2022 Can't find any solution yet, any ideas?? 😔 Link to comment Share on other sites More sharing options...
juanrojas Posted August 30, 2022 Share Posted August 30, 2022 don't work with xampp, work with wampserver Link to comment Share on other sites More sharing options...
JBW Posted September 6, 2022 Share Posted September 6, 2022 On 8/30/2022 at 11:02 AM, Juanaco said: Doesn't work, I have everything configured and it displays me this error: 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 Link to comment Share on other sites More sharing options...
El Patron Posted September 7, 2022 Share Posted September 7, 2022 did you regenerate the .htaccess? you can do this by disabling/enabling friendly url 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