Streamport Media Posted December 16, 2014 Share Posted December 16, 2014 Hi, I am trying to restore my prestashop store to localhost- XAMPP - 3.2.1 I have done these steps, -Installed Prestashop to localhost -Import Database -And transfer full back up files to htdocs folder -edited the php config files with new database name -change the shop url from PS_SHOP_DOMAIN Everything working fine, but images are broken, and all links are broken. while clicking the links in first page it shows like this, Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 localhostApache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 Kindly provide the solution as fast as possible? Link to comment Share on other sites More sharing options...
mickeyboy1 Posted December 16, 2014 Share Posted December 16, 2014 Have you tried renaming the htaccess file and regenerating a new one Link to comment Share on other sites More sharing options...
Streamport Media Posted December 16, 2014 Author Share Posted December 16, 2014 Hi Mickey, Thank you for your kind reply. No i haven't change or regenerate htaccess, can you tell how to do this properly for localhost? Link to comment Share on other sites More sharing options...
mickeyboy1 Posted December 16, 2014 Share Posted December 16, 2014 (edited) I would firstly find the .htaccess file in your root directory then rename it( don't delete it yet, just in case) Then goto BO/preferences/Seo and urls and switch the friendly urls off and on again, this should regenerate a new .htaccess file Edited December 16, 2014 by mickeyboy1 (see edit history) Link to comment Share on other sites More sharing options...
Streamport Media Posted December 16, 2014 Author Share Posted December 16, 2014 Hi, As per your suggestion i did the settings, but it didn't create any .htaccess file. Link to comment Share on other sites More sharing options...
Streamport Media Posted December 16, 2014 Author Share Posted December 16, 2014 Thank you very much Mickey. .htaccess file generated and links works well. Link to comment Share on other sites More sharing options...
Streamport Media Posted December 16, 2014 Author Share Posted December 16, 2014 Hi , Now the problem is images are not displaying and site looks different (Its not taking images and theme also) . I have checked with the folder 'img', full images are available. But it didn't take the pics. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted December 16, 2014 Share Posted December 16, 2014 Check in the BO to see that the correct theme is being used With the images, view the source code and check the urls are the same as what you have in your root Link to comment Share on other sites More sharing options...
khejit68 Posted January 20, 2015 Share Posted January 20, 2015 Had the same problem. First, be sure that you followed this steps (on the bottom of topic). Removing all files from fresh install except admin catalog should grant you access to admin panel. If you already imported database from live shop, use login and passwd same as for live site. Inside admin panel images could be broken, but you should have access to Seo & Urls tab in Preferences anyways. Settings: friendly urls: NOshop domain: localhost SSL domain: localhost Base URI: name_of_your_folder_in_htdocs Save. This way you do not need to change tables content manually. Let me know if this helped Link to comment Share on other sites More sharing options...
Recommended Posts