beepow Posted January 13, 2023 Share Posted January 13, 2023 Hello everybody, I'd need to move a PS shop 1.6 from a subdomain to a subdirectory (in the same domain). So I must migrate it from shop.domain.com to domain.com/shop In the root there's a WP site running. And it must stay there. Only the shop have to move. (I have no information about other configurations at this time but I will collect them soon) Do you have some suggestion on how to do it? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted January 13, 2023 Share Posted January 13, 2023 Please find the steps below : 1. Take the backup of your site and DB. 2. Go to your database and open table 'ps_shop_url' update 'domain' to 'new_domain' (or 'your-project-name.test' if you use laragon ) update 'domain_ssl' to 'new_domain_ssl' (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' update 'PS_SHOP_DOMAIN' to 'New_PS_SHOP_DOMAIN' (or 'your-project-name.test' if you use laragon ) update 'PS_SHOP_DOMAIN_SSL' to 'NEW_PS_SHOP_DOMAIN_SSL' (or 'your-project-name.test' if you use laragon ) 5. Regenerate your .htaccess file 1 Link to comment Share on other sites More sharing options...
beepow Posted January 13, 2023 Author Share Posted January 13, 2023 Thank you for replying! What about folders and files? No need to move them? Link to comment Share on other sites More sharing options...
Prestachamps Posted January 13, 2023 Share Posted January 13, 2023 Hi @beepow, if your subdomain's files are in the /shop folder then you don't need to move them(in case that the shop.domain.com is pointing to the folder domain.com/shop). If they are in another/different folder, then you will need to move also the files and subfolders into the main store's /shop/ folder. Have a nice day, Leo. 1 Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted January 13, 2023 Share Posted January 13, 2023 if you want to visit the shop from www.domain.com/shop you can move all prestashop files to the shop subfold if you can to visit from shop.domain.com you can create a new vps (out of wp website) 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