Jump to content

After migrating to localhost - constantly redirects to localhost


Recommended Posts

Hi everyone.

 

Here is my problem.

 

Presta 1.5.5

 

Downloaded all files from server.

Downloaded and imported database.

Changed settings in settings.inc.php

Changed tables ps_shop_url to

domain: loclahost

domain_ssl: localhost

physical_uri: /mysite/

 

Changed ps_configuration accordingly domain and domain_ssl to localhost

 

Now with that configuration when I go to the site I get redirected to localhost and in effect I get localhost/xampp/

 

When I remove the last slash from physical_uri field so it looks like this: /mysite

Then I get my site, but with all broken links, because of that deleted slash.

I have no Ideas how to approach this.

 

Changing urls in .htacces does nothing, unless i clear it completely - then I get 404 - which leads me to assumption that this might be something with rewrite engine, but again, changing some values gives no effect.

 

Any ideas? Please help.

 

Regards

 

Link to comment
Share on other sites

Thank you - it works now.

 

My problem was that I couldn't access admin panel earlier due to changes in url fields in database.

 

If anyone has similar problem - what to do.

 

After migrating to local - edit database acrodingly.

create user so you could log in admin panel - here is instruction: http://www.inmotionhosting.com/support/edu/prestashop-15/308-password-change-via-database

Next do as bellini13 wrote:

 

delete your .htaccess file, and then log into your back office.  visit the SEO and URL page, configure the domain and base url and save. 

 

Thx

Link to comment
Share on other sites

×
×
  • Create New...