# Installation in Subfolder

**URL:** <https://forum.shopware.com/t/installation-in-subfolder/60411>\
**Category:** Installation / Einstieg\
**Created:** [12. Juli 2019 um 13:10 UTC](https://forum.shopware.com/t/installation-in-subfolder/60411 "2019-07-12T13:10:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoargarth](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Hoargarth](https://forum.shopware.com/u/Hoargarth)\
**Post date:** [12. Juli 2019 um 13:10 UTC](https://forum.shopware.com/t/installation-in-subfolder/60411/1 "2019-07-12T13:10:20Z")

</div>

Hi Zusamen,  
wollte gerade Shopware6 bei mir lokal testen.  
Installation funktioniert soweit einwandfrei, auch das Frontend / Backend.

Mein Problem ist nur, dass die Verlinkungen im Shop-Frontend falsch gesetzt werden.

URL to /public folder  
[http://127.0.0.1:8888/shopware6/shop/](http://127.0.0.1:8888/shopware6/shop/)  
/shop/ ist hierbei ein Softlink auf /shopware6/developer/public

Installation über git und /bin/setup/  
.psh.yaml

> APP\_ENV: „dev“ APP\_URL: „[http://127.0.0.1:8888/shopware6/shop/](http://127.0.0.1:8888/shopware6/shop/)“ DB\_HOST: „localhost“ DB\_PORT: „3306“ DB\_NAME: „shopware6“ DB\_USER: „root“ DB\_PASSWORD: „root“

System:  
MacOS Mojave  
MAMP 5.3  
PHP 7.2.14

Beispiel Produktpage  
Aktuelle Verlinkung in Frontend:&nbsp;[http://127.0.0.1:8888/detail/03d39ca882bf4fb299c99be9796bb37f](http://127.0.0.1:8888/detail/03d39ca882bf4fb299c99be9796bb37f)  
Erwartete Verlinkung:&nbsp;[http://127.0.0.1:8888/shopware6/shop/detail/03d39ca882bf4fb299c99be9796bb37f](http://127.0.0.1:8888/shopware6/shop/detail/03d39ca882bf4fb299c99be9796bb37f)

Beim manuelle Navigieren auf&nbsp;[http://127.0.0.1:8888/shopware6/shop/detail/03d39ca882bf4fb299c99be9796bb37f](http://127.0.0.1:8888/shopware6/shop/detail/03d39ca882bf4fb299c99be9796bb37f) funktioniert die Produktseite wunderbar.

Public .htaccess

> DirectoryIndex index.php   
> Options -MultiViews  
>   
> RewriteEngine On
> 
> RewriteEngine on
> 
> RewriteCond %{REQUEST\_URI}::$1 ^(/.+)/(._)::\2$  
> RewriteRule ^(._) - [E=BASE:%1]
> 
> # Sets the HTTP\_AUTHORIZATION header removed by Apache
> 
> RewriteCond %{HTTP:Authorization} .  
> RewriteRule ^ - [E=HTTP\_AUTHORIZATION:%{HTTP:Authorization}]
> 
> RewriteCond %{ENV:REDIRECT\_STATUS} ^$  
> RewriteRule ^index.php(?:/(.\*)|$) %{ENV:BASE}/$1 [R=301,L]
> 
> # If the requested filename exists, simply serve it.
> 
> # We only want to let Apache serve files and not directories.
> 
> RewriteCond %{REQUEST\_FILENAME} -f  
> RewriteRule ^ - [L]
> 
> # Rewrite all other queries to the front controller.
> 
> RewriteRule ^ %{ENV:BASE}/index.php [L]  
>   
>   
> RedirectMatch 302 ^/$ /index.php/

Die Logo- und „Home“ Verlinkungen sind beide korrekt.

Gibt es hierfür noch irgend ein extra Setting damit der Store die Verlinkungen richtig nimmt?

---

<div class="post-metadata">

**Author:** ![inventbox](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/inventbox/32/13134_2.png) [@inventbox](https://forum.shopware.com/u/inventbox)\
**Post date:** [22. September 2020 um 15:17 UTC](https://forum.shopware.com/t/installation-in-subfolder/60411/2 "2020-09-22T15:17:11Z")

</div>

Hallo,

du musst&nbsp;in deinem Verkaufskanal genau diese Adresse

```
[http://127.0.0.1:8888/shopware6/shop/](http://127.0.0.1:8888/shopware6/shop/)

```

Angeben.

Gruß

Michael
