Posted by rahim123 on November 27, 2013 at 3:42pm
Hi everyone,
I have two domains running on a Drupal 6 multisite configuration with Nginx (Perusio's config). The first domain, "example1.com", is just a single language, and I want to redirect all www.example1.com/* requests to example1.com/*. The second domain, example2.com, uses the i18n module to change the language and content based on the subdomain (i.e. en.example2.com -> English, es.example2.com -> Spanish). Here's the relevant lines in my nginx enabled site:
However, this causes "anything.example2.com" to get redirected to "example1.com". Any tricks or workarounds for me?
Thanks very much!
Comments
Hi everyone, sorry to bump
Hi everyone, sorry to bump this, but I still can't figure this out. Any tips on how to redirect WWW to non-WWW on one site when using Drupal multisite while one of the other sites has language negotation by subdomain?
Thanks a lot!
share your config
Can you share your complete nginx config? I don't see server definitions for your example2.com domain separate from example1.com
Can you share your complete
Sure, although my nginx.conf is pretty much standard.
http://pastebin.com/d6d2FVWm
I was told by Perusio in a previous thread that it's not necessary to do a separate server definition when both sites share the same Drupal codebase in a multi-site configuration.
Thanks a lot for the help!