extra Posted February 8, 2018 Report Share Posted February 8, 2018 Hallo, wir haben einen xtc 4.2 Multishop. Darauf laufen diverse Shops, sprich unterschiedliche Domains werden angesteuert. Einige Domains laufen unter https (SSL), andere unter http. Ich möchte nun mit einem Befehl in der (für alle domains zuständigen) .htaccess sämtliche einkommende Anfragen - von shop1.de, www.shop1.de, http://www.shop1.de umleiten auf https://www.shop1.de. - von shop2.de, www.shop2.de, http://www.shop2.de umleiten auf https://www.shop2.de. - von shop3.de, www.shop3.de, http://www.shop3.de auf http://www.shop3.de. umleiten. Sprich, manche URLS auf https, andere auf http umleiten. Mit diesem Befehl leite ich pauschal alle URLS des Multishops auf https um, was ich aber nicht möchte: RewriteCond %{SERVER_PORT} !=443 RewriteRule ^(.*)$ https://www.domain.de/$1 [R=301,L] Weiß jemand um Rat in der Konfiguration der .htaccess? Danke, Chris Quote Link to comment Share on other sites More sharing options...
SvFricke Posted February 8, 2018 Report Share Posted February 8, 2018 Für einen Shop habe ich es so in meiner htaccess. Vielleicht kannst du daraus etwas für dich ableiten. RewriteCond %{HTTP_HOST} !^www\.domainname\.de$ [NC] RewriteRule ^(.*)$ https://www.domainname.de/$1 [L,R=301] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.