Jump to content

How to move Prestashop website from one directory on the domain to another?


Recommended Posts

Hi All

 

I have installed prestashop on example.com/beta and I have customized the site completely. Now I want to move the site to example.com and take it live. Can anyone help me on how to do this with the detailed steps to be followed?

I have two important questions to follow:

1. Is the process moving website from one directory to another theme specific i.e., will some themes not allow us to move our website completely from one directory to another?

2. Will the URLs of inner product pages, internal links in the navigation all change automatically or do we need to do that manually.

 

Thanks in advance :)

  • Like 2

Share this post


Link to post
Share on other sites

you have to move contents of your prestashop directory to root dir of your store. Then go to the preferences > seo & urls tab in your back office and change the base uri param

 

save changes

 

refresh your website

 

if you will have issues, regenerate the htaccess file

  • Like 2

Share this post


Link to post
Share on other sites

@Vekia Thanks for your assistance. I tried doing the same and got 404 errors for all the pages on the site. Same procedure must be followed to move from domain.com to domain.com/shop right.

Edited by yarashi (see edit history)

Share this post


Link to post
Share on other sites

hello

 

have you regenerated the htaccess file after change the base_uri field? sometimes its necessary. Yes, you have to use the same procedure while you moving shop from domain.com to domain.com/shop

 

additional question:

what kind of base uri you use? can you paste the value here?

im asking because you have to use ita with "/" backslash

Share this post


Link to post
Share on other sites
  • 6 months later...

Hi Vekia...

 

I successfully shifted PrestaShop from my root to the subdomain shop.iamway.in and it's working perfectly.

 

However, when I add a product to the cart, though it gets added, when I click on the Checkout, it says the cart is empty'.

 

Can you pls help?

 

Thanks.

Share this post


Link to post
Share on other sites

hello

 

thank you for information

is there any chance to get url to your website? 

i can inspect it, will see if the issue was related to dns propagation :)

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 2 weeks later...

your message is ... empty? can you write it once again, please?

 

I'm sorry, I'm just now seeing this, I probably accidentally quoted.

 

Anyway, thanks to you guys on this forum, I successfully cloned my shop the other day. It was a big step for me, since I'm a newbie in this stuff.

 

Thanks guys ;)

Share this post


Link to post
Share on other sites
  • 2 months later...

At 1.5.6.0 I actually had to do the following :

 

1) Disable cache

2) Move files (after that admin panel doesn't work anymore)

3) Use phpMyAdmin to edit table ps_shop_url. Edit the field 'physical_uri' to reflect the changed location of your shop

4) Go to the new URL backoffice

5) Regenerate robots.txt

6) Regenerate .htaccess 

7) Enable cache

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites
  • 4 months later...

At 1.5.6.0 I actually had to do the following :

 

1) Disable cache

2) Move files (after that admin panel doesn't work anymore)

3) Use phpMyAdmin to edit table ps_shop_url. Edit the field 'physical_uri' to reflect the changed location of your shop

4) Go to the new URL backoffice

5) Regenerate robots.txt

6) Regenerate .htaccess 

7) Enable cache

 

your a lifesaver thanks.  I was looking for the table value when i ran accross this... thanks  for posting the list.

Share this post


Link to post
Share on other sites

you have to move contents of your prestashop directory to root dir of your store. Then go to the preferences > seo & urls tab in your back office and change the base uri param

 

save changes

 

refresh your website

 

if you will have issues, regenerate the htaccess file

 

Thanks! 

Share this post


Link to post
Share on other sites

After you move presta, BO cannot be accessed. So you better change URI first and then move things around.

 

Alternatively you can move files and change URI directly in database.

Share this post


Link to post
Share on other sites

Well I tried before and was unable to access BO after moving the shop. If cookies were in play, changing DB would not have helped.

 

I would need to test again to verify. 

Share this post


Link to post
Share on other sites
  • 2 weeks later...

@Vekia, @Centio, @durangodave,

 

We moved our shop successfully from test URL to live Domain. All fine except:-

 

(1) Slideshow/slider has moved from Left to Center. As a result, 2-Banners that existed on its Right-side vanished.

 

(2) Can't Hook any images to Top/Home/Left/Right/Footer.. Always gives error in uploading image...

 

Please Help

 

Thanks

Share this post


Link to post
Share on other sites
  • 1 year later...

how ever i did have one question, is it ok to leave the domain physical set to /  since i am in root now or should i just leave it blank for 1.6, it seems to work with the /

 

 

 

HELP! It didn't work for me either! How did you solve this? I can't login into my back office now or the front office.. (but I can see the login page).

 

This is what I did:

1) Disable cache

2) Move files (after that admin panel doesn't work anymore)

3) Use phpMyAdmin to edit table ps_shop_url. Edit the field 'physical_uri' to reflect the changed location of your shop

4) Go to the new URL back office -> UNNABLE TO LOGIN

 

Please help!

 

Thanks

Edited by carolinalour (see edit history)

Share this post


Link to post
Share on other sites
  • 3 years later...

Steps to perform for moving  Prestashop website from one directory on the domain to another are :- 

1) Disable  cache 

2) Move files (after that admin panel doesn't work anymore)

3) Use phpMyAdmin to edit table ps_shop_url. Edit the field 'physical_uri' to reflect the changed location of your shop

4) Go to the new URL backoffice

5) Regenerate robots.txt

6) Regenerate .htaccess 

7) Enable cache

 

Share this post


Link to post
Share on other sites
  • 1 year later...

Got the problem with 1.7. 

1) Disable cache

2) Move all the files to the root (public_html)

3) Used phpMy Admin to edit ps_shop_url field "physical_uri" leaving there only / simbol

4) ERROR 500.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More