I can't think of a better title sorry...
I'm using the (excellent) Domain Access module. One thing I'm doing is aliasing sites. As an example.co.uk is aliased to example.com. So going to example.co.uk/foo is identical to going to example.com/foo.
However, there are one or two pages (in a large site) which I want to be different. So example.co.uk/contact would go to a different page than example.com/contact.
The "easiest" way (if horrendous in some respects) seems to be to add code (to theme_preprocess_page? to settings.php? custom_url_rewrite_inbound?) that says:
(if the hostname is example.co.uk and the page alias is /contact)
then
(use node/445 [rather than node/30])
Is this possible? Where should I add the code (and any ideas what should it be?) Is there a better way or will I have to do it differently in Domain Access (e.g. create .co.uk as a separate domain and assign all existing and future pages to it except the single different one).
Comments
I don't really get why you're
I don't really get why you're using Domain Access to redirect everything. There's easier ways to do that.
But if that's what you want to do, one way may be to enable the Domain Source module, then set the source of every page to your .com site, except for the .co.uk site's contact page.
The Boise Drupal Guy!
Thanks for the response. I'll
Thanks for the response. I'll have a look into it.
As to why Domain Access: I'm running a number of different i18n sites (example.com, example.de, example.fr etc) and using DA to manage that. For British English-language sites (so example.co.uk, example.com.au, example.co.nz etc) I'm thinking of aliasing example.com and and running the node content for these sites through a function that Britishifies it (changes "color" to "colour", "meter" to "metre"). However, I will want one or two completely different pages (contact details).
The alternative seem to be to create .co.uk, .com.au etc as separate domains, and share the 80% of pages that don't have Americanisms on, create 19% near similar pages for those that do and one or two different pages where content is different (say contact details).
Maybe the second one is the better way, but I wondered whether I could try teh first one as well.