Andy C Posted March 20, 2023 Share Posted March 20, 2023 Hi 1st post here... I installed a new version of Prestashop 1.778 as I just wanted to test it to see how I got on.. I have now build a complete new website and is ready to swap over to my main domain... Now I don't know if I have done it wrong and I have tried a few things like using .htaccess and admin seo side by changing the Base URI settings, but all I get is a broken site.. My website is say www.abcd.co.uk and I added a new website under www.abcd.co.uk/test-site. Have I done wrong or is there a step by step guide to get things swapped around correctly. thanks Link to comment Share on other sites More sharing options...
El Patron Posted March 22, 2023 Share Posted March 22, 2023 when your shop runs in a folder, not great idea but .htaccess will be used in root... what do you mean by broken? the .htaccess can be tricky, php will pick up what in root first.... I don't recommend running ps as a folder, better as a subdomain if you are have other website in root that is Link to comment Share on other sites More sharing options...
bera_ramazan Posted March 23, 2023 Share Posted March 23, 2023 Hello, put the files in the home directory, then delete the files under the existing var/cache directory in the home directory. Then correct the required fields in the app/config/parameters.php file, then close and open the Seo Url part of the admin Link to comment Share on other sites More sharing options...
Andy C Posted March 23, 2023 Author Share Posted March 23, 2023 I have been thinking about it and know you say it it makes sense about putting files into the home directory lol. I'll give it a go this weekend .. thank you I was also battling with the file structure with 1.7 in FTP... I know where every thing is in 1.6 Link to comment Share on other sites More sharing options...
Andy C Posted March 26, 2023 Author Share Posted March 26, 2023 Not sure where I am going wrong i copied all the files over to the main directory after deleting my old files...Changed the ,htaccess and changed the Base URI checked app/config/parameters.php all looked OK as am using the same database + cleaned out var , also made a new var file, cleaned cache to no effect, turned off all performance items Admin pages are all over the place but can still do things and website doesn't show anything, just a white page. Obviously missing some step somewhere Link to comment Share on other sites More sharing options...
get3code Posted March 26, 2023 Share Posted March 26, 2023 You need to change the table ps_shop_url in the mysql database to the new url (you change localhost to the domain name, e.g. domain.com). In the htaccess file, use notepad++ to change all localhost words to your domain name (e.g. domain.com). In the configuration file you set the data of the new database on the server: app/config/parameters.php You need to remove the cache additionally (you remove or add __ for the folder in /var/cache/__prod) 1 Link to comment Share on other sites More sharing options...
Andy C Posted March 26, 2023 Author Share Posted March 26, 2023 Thanks, tried again and still ended up in the same outcome. Couldn't even get into admin to make the changes this time May just have to pay someone to do it for me Link to comment Share on other sites More sharing options...
get3code Posted March 26, 2023 Share Posted March 26, 2023 You could not get to the admin panel because you removed htaccess. Here you have an example, replace localhost with your domain name. https://gist.github.com/stefanpejcic/733459c41d06fc8e2bf03ef1536e7b35 Link to comment Share on other sites More sharing options...
Andy C Posted March 26, 2023 Author Share Posted March 26, 2023 Sorry should have been the log in page was OK, as soon as I signed in it went. I have been correcting the .htaccess each time in my example it was # Domain: www.mywebsite.co.uk RewriteRule . - [E=REWRITEBASE:/new/] just removed the new/ and left the 1 / there is also another 1 further down with the 404 and did the same there Also checked in myphp and edited it there too Link to comment Share on other sites More sharing options...
get3code Posted March 26, 2023 Share Posted March 26, 2023 Try change this in ps_shop_url (physical_uri to / ) Link to comment Share on other sites More sharing options...
Andy C Posted March 26, 2023 Author Share Posted March 26, 2023 (edited) Mine looks like this.... My main website (another 1 that is fine) looks exactly the same as this but with just 1 / ... I'm not really good at coding in fact know nothing really, just the things I have self taught myself though the years It's teh end of the weekend so not going to try again as it takes ages to change over each time Edited March 26, 2023 by Andy C (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted March 27, 2023 Share Posted March 27, 2023 Hi @Andy C, Have you tried saving the SEO&URL BO page again so that the.htaccess file can be regenerated again correctly? I hope that I could help. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
Andy C Posted March 27, 2023 Author Share Posted March 27, 2023 Hi ,yes I did a couple of times... I've never done it before either which doesn't help I know Link to comment Share on other sites More sharing options...
Andy C Posted April 1, 2023 Author Share Posted April 1, 2023 Thanks for all the help and advice.. Good news is I got it working in the end I used this page as a guide and just followed it step by step https://www.dreamtheme.eu/blog/how-to-transfer-prestashop-1-7-to-different-location/ Now to start building my main website which is a hellva more complicated with an_products and loads of other modules 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