Trying to do the opposite of www.domain.com -> domain.com

David mishy.cth at gmail.com
Mon Sep 1 16:04:15 MSD 2008


Thank you Igor, that is a great solution.

"
BTW, it's better to use something like this instead of "if":
 
server {
      server_name  www.maydomain.nl;
      ...
}
 
server {
      server_name  maydomain.nl;
      rewrite ^(.*)$ http://www.mydomain.nl/$1 permanent;
}
"






More information about the nginx mailing list