Hey guys,

sounds like a stupid support request but is it possible with a few hacks to use the domain access module for unique pages without subdomains?

We are running in a situation like this that we have not the power to make any changes on the server conf but your module is the best solution for our problem. But instead of http://myuniquesite.example.com we need the same features for http://www.example.com/myuniquesite . Sounds easy but we have a lot of headaches about it. From a cookie based solution to OG we had all in mind but they are still not flexible enough like your module is.

So is it possible to change the rules in the module from subdomain to first argument in the URL? If so, where? We would really apreciate your help.

Best Wishes,

Dee

Comments

B747’s picture

Status: Closed (fixed) » Active

{ comment deleted (irrelevance) }

agentrickard’s picture

Possibly. Look at the function domain_init() in domain.module and the functions _domain_conf_load() and _domain_prefix_load() in settings_domain_conf.inc and settings_domain_prefix.inc.

This is where the routine for determining the domain comes in.

See also http://drupal.org/node/270983

accessiveapps’s picture

Hey,

thanks for the quick response. But one question. If I configure it like this http://host.com/site what happens if there is instead of site node? is it possible to keep the "mothership" site host.com ?

Thanks again,

Dee

agentrickard’s picture

I do not understand the question.

accessiveapps’s picture

never mind :)

Biggest Problem is to find out where I could override the domain path variable like this http://host.com/domain/mysite and then to have domain specific content there.

Like http://host.com/domain/mysite1/node should come up with a different content like http://host.com/domain/mysite2/node ...

I figured out how to switch the domain_id by reading out arg(1) but the problem is that all paths to each content to the sites needs domain/mysite2 as arguments for

1.) domain = it is unique site.
2.) mysite2 = which site it is.

So if I could figure out how to hammer in my args into the url before node, term or whatever and it would be count like a domain request I would be fine.

Sorry ... I had french in school :)

Thanks,

Dee

agentrickard’s picture

I think you need to investigate custom_url_rewrite(). In D6, it is custom_url_rewrite_inbound(). And I believe that Domain Access backports that function to D5 when you install the patch.

The i18n modules do something like that, but I do not know how it works.

- http://api.drupal.org/api/function/custom_url_rewrite_inbound/6
- http://api.drupal.org/api/function/custom_url_rewrite/5

accessiveapps’s picture

Great ... I will investigate it this night.

Thanks again,

Dee

agentrickard’s picture

Status: Active » Closed (fixed)

Status: Active » Closed (fixed)
le72’s picture

The problem is described here: http://drupal.stackexchange.com/questions/104778/creating-multi-country-...
Still no solution with this module. Have to use Organic Groups.