# Redirect aller /media/ Urls funktioniert nicht

**URL:** <https://forum.shopware.com/t/redirect-aller-media-urls-funktioniert-nicht/103947>\
**Category:** Shopware 6 (German)\
**Created:** [7. Mai 2024 um 10:51 UTC](https://forum.shopware.com/t/redirect-aller-media-urls-funktioniert-nicht/103947 "2024-05-07T10:51:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopware14](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@shopware14](https://forum.shopware.com/u/shopware14)\
**Post date:** [7. Mai 2024 um 10:51 UTC](https://forum.shopware.com/t/redirect-aller-media-urls-funktioniert-nicht/103947/1 "2024-05-07T10:51:20Z")

</div>

Folgende Regel habe ich in der /public/.htaccess:

RewriteCond %{HTTP\_HOST} ^www.subdomain.domain.de$ [NC]  
RewriteRule ^(media|theme)/(.\*)$ [https://www.domain.de/$1/$2](https://www.domain.de/$1/$2) [R=301,L,NE]

Alle URLs die /theme/ enthalten werden weitergeleitet, URLs die /media/ enthalten hingegen leider nicht.

Gibt es eine Besonderheit beim media Verzeichnis?
