0

I created a new store view and new url.

I config it in backend and add in htaccess like this

SetEnvIf Host www\.my.web-abc\.com MAGE_RUN_CODE=berba_new
SetEnvIf Host www\.my.web-abc\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^berba.der-offizielle-taschen-shop\.com MAGE_RUN_CODE=berba_new
SetEnvIf Host ^berba.der-offizielle-taschen-shop\.com MAGE_RUN_TYPE=website

And

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} off
RewriteCond %{HTTP_HOST} ^my\.web\-abc\.de$ [OR]
RewriteCond %{HTTP_HOST} ^www\.my\.web\-abc\.de$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ "https\:\/\/www\.my\.web\-abc\.de\/$1" [R=301,L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.