Jump to content

Moving PS 1.6 from a subdomain to a subdirectory


beepow

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...