# Moving shopworn 5 from shop.domain.com to www.domain.com/shop

**URL:** <https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726>\
**Category:** International (English Only)\
**Tags:** general\
**Created:** [10. September 2016 um 13:45 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726 "2016-09-10T13:45:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rreimche](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rreimche](https://forum.shopware.com/u/rreimche)\
**Post date:** [10. September 2016 um 13:45 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/1 "2016-09-10T13:45:26Z")

</div>

Hi.

In files on the server I have directories “shop” and “wp”. The hosting is configured that “shop” is being used by&nbsp;subdomain “[shop.domain.com](http://shop.domain.com)” and “wp” (which is a wordpress installation) is used by “[www.domain.com](http://www.domain.com)”.&nbsp;

I have copied /shop to /wp/shop. Both installation at this point use the same database. The I opened “[shop.domain.com/backend](http://shop.domain.com/backend)” and configured “host” from [shop.domain.com](http://shop.domain.com) to [www.domain.com](http://www.domain.com) and “path” to /shop.

At this point I am able to open the shop at “[www.domain.com/shop](http://www.domain.com/shop)” as well backend at “[www.domain.com/shop/backend](http://www.domain.com/shop/backend)”, but the system get 404 on a lot of tries to get important resources from the server.

What am I doing wrong and how can I do what I want?

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [10. September 2016 um 13:56 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/2 "2016-09-10T13:56:02Z")

</div>

Hi rreimche,

did you clear the whole cache after changing the host entry? If not do so. And it’s a pretty bad idea to share a database between Shopware and Wordpress. Shopware should have it’s own database.&nbsp;

---

<div class="post-metadata">

**Author:** ![rreimche](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rreimche](https://forum.shopware.com/u/rreimche)\
**Post date:** [10. September 2016 um 14:08 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/3 "2016-09-10T14:08:29Z")

</div>

They do use different databases. It’s just the 2 shopware installations that use the same database.&nbsp;

Actually, my algorithm was like this:

- copy files

- change host and path

- open at new locatio, see 503

- play with php settings (opening the old location’s backend), get something working

- remember to clear cache, clear it, something more works, but it’s still unusable.&nbsp;

I’ll try now again to change settings on the old location then purge cache then open new location…

---

<div class="post-metadata">

**Author:** ![rreimche](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rreimche](https://forum.shopware.com/u/rreimche)\
**Post date:** [10. September 2016 um 14:17 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/4 "2016-09-10T14:17:04Z")

</div>

Well… it didn’t help…

When I open the new shop location, there are some problems about loading stuff from [www.domain.com/[shopware\_files]](http://www.domain.com/%5Bshopware_files%5D) and not from [www.domain.com/shop/[shopware\_files]](http://www.domain.com/shop/%5Bshopware_files%5D). One could suppose that I have forgotten to change “path” in the settings, but I didn’t:&nbsp;[https://www.dropbox.com/s/0yp3ihvza5rxcvo/Screenshot%202016-09-10%2016.13.03.png?dl=0](https://www.dropbox.com/s/0yp3ihvza5rxcvo/Screenshot%202016-09-10%2016.13.03.png?dl=0)

And when I open [www.domain.com/shop/backend](http://www.domain.com/shop/backend) I get 404 loading a lot of stuff. The system tries to load it from [http://www.domain.com/[path\_to\_files\_on\_the\_server\_root\_related]/[shopware\_files]](http://www.domain.com/%5Bpath_to_files_on_the_server_root_related%5D/%5Bshopware_files%5D). For example:&nbsp;

[http://www.domain.com/www/htdocs/[login\_on\_server]/domain.com/shop/themes/Backend/ExtJs/backend/\_resources/resources/css/extra-icon-set-02.css?201607251359](http://www.domain.com/www/htdocs/%5Blogin_on_server%5D/domain.com/shop/themes/Backend/ExtJs/backend/_resources/resources/css/extra-icon-set-02.css?201607251359)

when the right URL would be (I guess)

[http://www.domain.com/shop/themes/Backend/ExtJs/backend/\_resources/resources/css/extra-icon-set-02.css?201607251359](http://www.domain.com/shop/themes/Backend/ExtJs/backend/_resources/resources/css/extra-icon-set-02.css?201607251359)

As you understand, I use [something] here as a substitute for real values.

&nbsp;

UPDATE: when opening [www.domain.com/shop](http://www.domain.com/shop), the system also has some 404 errors as when opening /shop/backend

UPDATE: to make it more clear… the 404s when there is usage of server path instead of url are about loading resources from the server path of OLD installation…

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [11. September 2016 um 15:55 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/5 "2016-09-11T15:55:19Z")

</div>

Could you send us a screenshot of the shop settings? ( Basic settings \> Shop Settings \> Shop ) . You should leave the “virtual path” setting empty.

I experienced&nbsp;the same error that Shopware tries to load the resources from an url containing the server root path when moving a shop and I forgetting to clear the cache. Make sure you cleared the whole cache ( not just the template cache ). I&nbsp;would recommend running the clear\_cache.sh script in \_Shopware\_Root\_/var/cache/clear\_cache.sh.

---

<div class="post-metadata">

**Author:** ![rreimche](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rreimche](https://forum.shopware.com/u/rreimche)\
**Post date:** [11. September 2016 um 18:35 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/6 "2016-09-11T18:35:22Z")

</div>

OK, here are the screenshots (spaces are left with intention for the forum not to substitute links with images):&nbsp;

https: [//www.dropbox.com/s/3zpa0329ecuy0hh/Screenshot%202016-09-11%2020.31.33.png?dl=0](https://www.dropbox.com/s/3zpa0329ecuy0hh/Screenshot%202016-09-11%2020.31.33.png?dl=0)  
https: [//www.dropbox.com/s/1kkf2rmnev81td1/Screenshot%202016-09-11%2020.32.53.png?dl=0](https://www.dropbox.com/s/1kkf2rmnev81td1/Screenshot%202016-09-11%2020.32.53.png?dl=0)

&nbsp;

I cleared the case via Settings \> Caches/Perfomance \> Cache. Here I checked everything and emptied it. I also have generated the template.

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [11. September 2016 um 18:46 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/7 "2016-09-11T18:46:40Z")

</div>

Ok then login via FTP and rename the folder in /var/cache/ called production\_XXX\_ to something else ( remeber the original filename so you can move it back properly if needed&nbsp;).  
Then try to load the backend.&nbsp;

The settings are correct. You can clearly see that Shopware is still looking for the files in the old directory (&nbsp;[…]htdocs/[login\_on\_server]/domai **[n.com/shop/the](http://n.com/shop/the)** mes/[…]. The wp folder is missing.&nbsp;

---

<div class="post-metadata">

**Author:** ![rreimche](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rreimche](https://forum.shopware.com/u/rreimche)\
**Post date:** [12. September 2016 um 11:01 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/8 "2016-09-12T11:01:18Z")

</div>

There vere 3 folders of that format. I added an underscore to the beginning of each of their names and voila! It works.

Thank you very much, simkli, you made my day. I would probably&nbsp;never find this it out alone and it would have taken much more of my time to solve it&nbsp;:)

&nbsp;

By the way, should I delete these folders now?

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [12. September 2016 um 15:41 UTC](https://forum.shopware.com/t/moving-shopworn-5-from-shop-domain-com-to-www-domain-com-shop/39726/9 "2016-09-12T15:41:16Z")

</div>

That’s nice to hear&nbsp; ![Smile](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/smile.png "Smile").&nbsp;

> [@rreimche schrieb:](https://forum.shopware.com/profile/24681/rreimche "rreimche")
> 
> By the way, should I delete these folders now?

Yes you can delete them now. Just in case Shopware would’ve thrown a Doctrine error after renaming them you’d had to move them back. But that didn’t happen so it’s safe to delete them.&nbsp;
