Hello,
I'm using Domain Access module for www.aze.com.
I created a sub-domain for each country. My users are associate to a country, but not really, I don't use Domain GeoLocalization.
I'm just using a cck field where users have to choose theirs countries.
I don't want my users have to navigate in only one sub-domain. They could go to another country and see what's going on there.
What I would like:
I don't want to use the principal domain www.aze.com. I would like that users, when they use the url www.aze.com, be redirecting automatically to the sub-domain corresponding to the country where they are actually, in flesh and bones.
Maybe I should use Domain GeoLocalization, I don't know, I prefer to ask to an expert before doing it.
Thanks :)
Comments
Comment #1
agentrickardYou want Domain GeoLocalization or a module like it that reacts to your CCK field. It's fairly simple code, but not for the main module.
I would run the check in hook_init() or hook_boot().
Comment #2
nonsieActually this seems more like a use case for Domain User Default. Domain Geolocalization alone provides location data for domains but does not force any redirects.
You'd set the redirect in Domain User Default settings to "Only from primary domain".
Comment #3
junro commentedok, I'm going to use Domain Geolocalization with Domain User Default and see If I could do what I want.
But about domain proximity searches, I don't need this (maybe later?).
Thanks :)
Comment #4
junro commentedRedirect authenticated visitors from www.aze.com to their sub-domain was very easy.
But I'm interesting with unauthenticated visitors.
If a unauthenticated visitor from Canada use the url www.aze.com, he should be redirecting to aze Canada.
Should I use the Domain Session Default module?
Comment #4.0
junro commentedurl pariscine.com should not be display
Comment #5
nonsieI believe you mean Session API module which will take care of not logged in users. It will not however set the session default domain based on user's IP address eg. if the user has been visiting ParisCine Canada he'll be redirected there from www.pariscine.com if redirect is set to "Only from primary domain" or "From any subdomain other than the user's default".
Comment #6
junro commentedhum ok, thanks for the explanation. So It's not really what I would like.
Oviously, I should need a custom module but I don't have skills to do it.
It should be nice to adding this new feature with the Domain User Default module or Domain GeoLocalization module, I don't know.
The Domain GeoLocalization module provides each domain with loative information (Lat/Long,
city, state, postal code, country)...
It would be nice if a module authenticate the IP of unauthenticated and uthenticated visitors to redirect them to the right sub-domains...
I don't know if it's possible...
I let you change the issue title to a better one :)
Comment #7
nonsieIt doesn't really fit with Domain User Default nor Domain Geolocalization. What you most likely need is a bridge module between Domain Access and IP to Country or some other module that does IP based lookup and mapping.
Comment #8
junro commentedok, thanks ^^
I'm going to look at the IP to Country module and see what could be done.
Comment #9
plasticlax commentedwhat would be cool is if the multiprice module's region select block could force you into another domain. have you seen multiprice? i also want to share a site from two countries, but i want to share the products, with a correct price for each.
Comment #10
agentrickard