0

I have a question for config url rewrite on .htaccess file. On my store have two language is English and German. I setup English with domain main.cocal and German is de.main.local. so for now I want new setup for ch-de.main.local will be redirect to de.main.local. How I do that? Many Thanks!

1

You probably want to just use an nginx temporary redirect instead.

server {
    . . .
    server_name ch-de.main.local;
    rewrite ^/(.*)$ http://de.main.local/$1 redirect;
    . . .
}

server {
    . . .
    server_name de.main.local;
    . . .
}

I wouldnt bother with htaccess if you have nginx.

| improve this answer | |
  • many thanks @shapeshifter – xanka May 30 '19 at 9:45

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.