Dynamic Locale Subdomains

Hi,
after setting up my site english/german I tried to use the Subdomain feature.

Here is my problem:
My main site is:
www.ralf-kerkhoff.de

I have created a subdomain which is only possible without the www.
So the subdomain is:
en.ralf-kerkhoff

After enabling the subdomain feature in the dynamic-locale plugin, zenphoto tries to reach:
en.www.ralf-kerkhoff.de

Any suggestions to get rid of the www? - Except that I redirect www.ralf-kerkhoff.de to ralf-kerkhoff.de

Is there something to add to the htaccess - I am using the original one generated during installation.

Cheers
Ralf

Comments

  • acrylian Administrator
    How do you do the redirection from www to non www, via your host's backend or via htaccess?

    Btw, to clarify `www` is a subdomain as `en` is. That it is used everywhere is actually a kind of legacy.
  • Hi Acrylian,
    via the host backend.
  • acrylian Administrator
    I will have to try on my own host tomorrow. Has been a while I did.
  • Hi,

    thanks a lot.
    As said my desired solution would be not to redirect www.ralf-kerkhoff.de to ralf-kerkhoff.de.

    If possible the english version should be redirected to en.ralf-kerkhoff.de - just without the wwww.

    Ralf
  • Hi,

    thanks a lot.
    As said my desired solution would be not to redirect www.ralf-kerkhoff.de to ralf-kerkhoff.de.

    If possible the english version should be redirected to en.ralf-kerkhoff.de - just without the wwww.

    Ralf
  • Me again,

    maybe i have misinterpreted the instructions...

    I have created a subdomain including the www, which means the subdomain is
    en.www so the whole subdomain is:
    en.www.ralf-kerkhoff.de

    Was this the 'trick' or is there something else to change?

    Ralf
  • acrylian Administrator
    You actually created a subdomain named en.www instead of en now. Since www is a subdomain itself already you don't need it at all. http://de.wikipedia.org/wiki/Domain_(Internet)#Aufbau_und_Regeln
  • HI Acrylian,

    to be honest I dont understand the part 'you dont need it at all'...

    If i am right, www.ralf-kerkhoff.de is a subdomain of ralf-kerkhoff.de
    Both of this domains are pointing to the directory where zenphoto is installed in.

    If I open the domain ralf.kerkhoff, the english flag points to en.ralf-kerkhoff.de

    Doing so with www.ralf-kerkhoff the english site is:
    en.www.ralf-kerkhoff.de

    So I need two subdomains for the english 'version':
    en.www.ralf-kerkhoff.de
    en.ralf-kerkhoff.de

    Until now I see only one chance to avoid two 'en' subdomains:
    Either redirect www.ralf-kerkhoff.de to ralf-kerkhoff.de or vice versa.
    Just wondering what might be the most elegant and seo friendyl way...
  • acrylian Administrator
    I try again:

    • `www.ralf-kerkoff.de` => subdomain named "www" - the usage of the "www" was actually never really needed but people are still used to for "www" meaning "world wide web". Both the www to non www are technically both addresses are completely independent. You do the redirection basically for search engines so one domain is the "main" one to avoid "duplicated content"
    • `en.ralf-kerkhoff.de` => subdomain named "en" - This is the only subdomain you need for English
    • `en.www.ralf-kerkhoff.de` => subdomain named "en.www." – The "www" here is obsolete.
  • Hi,

    and thats exactly the problem I have.
    When I open my site with the www Zenphoto tries to reach the english site:
    en.www.ralf-kerkhoff.de

    If I delete the subdomain named en.www. I end with a 404 error.

    So my guess for a solution was:
    redirect wwww.ralf-kerkhoff to ralf-kerkhoff
    This way I only need the en.ralf-kerkhoff for the english part.
  • acrylian Administrator
    Must be something specific to your server/host. Actually the www to the non www address redirection should not affect other subdomains at all.
Sign In or Register to comment.