Hello,
i have following situation
i would like to redirect from https://domain.com to https://www.domain.com
the https redirect works out of the box do not want to change it
but due to the reason that i have a magento multistore
i have 4 domains pointing to same main domain, they are aliases
in summary i have 1 domain and 7 aliases 4 of them are without www.
for that i want to modify some tpl nginx in order to redirect it to the right domain
my explanation was not the best… but it seems the question is obsolete.
because with redirect checker, everything shows fine…
301 and finally 200 which is everything green and redirect works as it should thank you anyway
please close
HI, i already found this, but this does not answer my question
imagine you have i domain testdomain.com
then you switch can redirect to www.testdomain.com … which is fine for one domain
but imagine you have two or in my case 4 domains for one installation
something like this default magento nginx configuration… i edited the header
this mapping already works, but im not sure if someone who comes with https://domain1.de gets the www from the store system or does it get the value aready via this mapping…
do you understand what i mean? i do not find better explanation at the moment.
#=======================================================================# # Default Web Domain Template # # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
#=======================================================================#
I am not certain because I am no ngnix expert but I think that if you set every domain you want to redirect as the main domain or an alias, nginx will catch the request and then your template will do the redirection.