ochris Posted March 19, 2011 Share Posted March 19, 2011 HiI did some searching on this forum, but didn't find any similar problem.Here the thing. I have final 1.4 version installed on localhost and need to go live with it.Did everything like like said in tutorials1. Imported database2. Uploaded files3. Chmoded necessary directories4. Edited settings.inc.phpOn the localhost the address was localhost/prestashop and on server www.mysite.com .I set base uri to ('__PS_BASE_URI__', '/');BO works fine. FO loads up (images, customized theme) but almost all the links are broken. For example it shows localhost/my-account.php instead of www.mysite.com/my-account.php. Only http://www.mysite.com/contact-form.php seems to be fine.Any ideas? Link to comment Share on other sites More sharing options...
rudders18 Posted March 19, 2011 Share Posted March 19, 2011 HiHave you recreated teh .htaccess file as this will probably have links in it based on the local install Link to comment Share on other sites More sharing options...
ochris Posted March 19, 2011 Author Share Posted March 19, 2011 I once created .htacess with prestashop on localhost but then deleted it. So I didn't upload it to thelive server. Actually tried createing new .htacess file in live servers BO but no change on links. Link to comment Share on other sites More sharing options...
rudders18 Posted March 19, 2011 Share Posted March 19, 2011 Try turning off friendly URL's at BO-Preferences-SEO, also try setting Force Compile to Mo, if its set to yes, BO-Preferences-Performance and finally did you copy accross the compiled files from your local host, these are the ones in tools\smarty\compile folder, delete all of the ones with long numbers in their titles. I have had all of these things cause problems such as you are experiencing. Link to comment Share on other sites More sharing options...
ochris Posted March 19, 2011 Author Share Posted March 19, 2011 Thanks for answering rudders18, these were good clues, I was just stupid :-S The asnwer was very easy. I totally missed under SEO tab the URLs setup where is Shop domain form.Chris Link to comment Share on other sites More sharing options...
shokinro Posted April 2, 2011 Share Posted April 2, 2011 Please be noticed that in 1.4 the domain name or host name is saved in database.do if you installed on localhost then move to live site, you need manually change the domain name in database.otherwise, it will always redirected to your localhostsee more detail, please visit here Link to comment Share on other sites More sharing options...
SonnyBoyII Posted May 20, 2011 Share Posted May 20, 2011 Quote Please be noticed that in 1.4 the domain name or host name is saved in database.do if you installed on localhost then move to live site, you need manually change the domain name in database.otherwise, it will always redirected to your localhostsee more detail, please visit here That is not exactly true Just go to Back Office >> Preferences >> SEO & URLs scroll all the way down and change shop URL. Link to comment Share on other sites More sharing options...
shokinro Posted May 20, 2011 Share Posted May 20, 2011 Quote Just go to Back Office >> Preferences >> SEO & URLs scroll all the way down and change shop URL. Yes, I know there is place you can change it.But when connect to your site, it redirect to your old server, what ever URL you changed, it will be saved in your old site database. Link to comment Share on other sites More sharing options...
SonnyBoyII Posted May 20, 2011 Share Posted May 20, 2011 Quote Quote Just go to Back Office >> Preferences >> SEO & URLs scroll all the way down and change shop URL. Yes, I know there is place you can change it.But when connect to your site, it redirect to your old server, what ever URL you changed, it will be saved in your old site database. It works fine for me PS1.40 Maybe there was a bug which has been fixed? Link to comment Share on other sites More sharing options...
duongphuc Posted November 1, 2011 Share Posted November 1, 2011 That's mean, must change your domain name , where is it ??? i've got this too, can't change any domain or server any time, it only redirect to old server. * my key for google searching problem, they go prestashop back: "how to work site from live to localhost prestashop" ** MOD please help Link to comment Share on other sites More sharing options...
shokinro Posted November 1, 2011 Share Posted November 1, 2011 have you checked the post I made on 02 April 2011 - 01:13 PM follow the link provided you can change it directly from database if you can not access the back office correctly. Link to comment Share on other sites More sharing options...
duongphuc Posted November 2, 2011 Share Posted November 2, 2011 1/ Ofcouse, i've done, change domain name for database (table config) and fix setting.inc.php and now - my site operated with new domain and database which i added new 2/ CHMOD like this: --CHMOD the following folders and it subdirectories (and files) to 777 recursively:- img, /mails, /modules, /themes/prestashop/lang, /translations --CHMOD the following folder to 777 (not recursively):- /config, /upload, /download, /tools/smarty/compile **** I've just get new problem : when enter the my site all table have gone, only text and image , look like disappear all frame, funny Get your demo: http://www.thietbicongnghiep.tk MOD - how can i fix this? - thanks Link to comment Share on other sites More sharing options...
duongphuc Posted November 3, 2011 Share Posted November 3, 2011 Oha, i have a answer for this case, easily Hosting using control panel - that's right: Cpanel: linux- doen't working PS together (i've 2 hosting for testing, fall) Vista panel : linux be ok (i've 2 hosting for testing too, test very OK) Please check your server if you get this fall Link to comment Share on other sites More sharing options...
kiransharma Posted September 15, 2012 Share Posted September 15, 2012 (edited) Check your database table : "ps_shop_url" Change field "ps_shop_url" Edited September 15, 2012 by kiransharma (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts