When I try manage to redirect forums (forum taxonomy) to specific domains (domain access) I wasn't able to - infinite loops.

For example:
(domain1)/forums/computer -> www.subdomain1/forums/computer
(domain1)/fr/forums/ordinateur -> www.subdomain1/fr/forums/ordinateur
but since I have more subdomains...

(subdomain3)/forums/computer -> www.subdomain1/forums/computer
(subdomain3)/fr/forums/ordinateur -> www.subdomain1/fr/forums/ordinateur

(subdomain4)/forums/computer -> www.subdomain1/forums/computer
(subdomain4)/fr/forums/ordinateur -> www.subdomain1/fr/forums/ordinateur

I spend almost all day to investigate this further - multilingual site with DA. Trying to uninstall/reinstall i18n, global redirect, redirect but I wasn't able fix this. Maybe somebody have similar functionality on his/her site and know how to get this working.

EDIT: Related http://drupal.org/node/1526408

Comments

batigol’s picture

I think I want to build something similar and after few tests I can't get it to work cause of Redirect infinite loops. I tested this on clean drupal (i18n, DA, variable, redirect) install and I could not set thing up without loops.

I guess redirect isn't working with DA cause other external links are working fine.

batigol’s picture

Priority: Normal » Major

Redirect, redirects not working :) So for this module I think it's a major issue.

batigol’s picture

Issue summary: View changes

edit

kerios83’s picture

I think its a problem with DA. I'm not saying that this is DA problem but Redirect problem with DA.

On page when I simply link to other domain, everything is working but when I link to other page with is another Domain Accesss domain then I got infinite loops.

And Redirect module is right cause it use Active Domain to all redirects, so it could use domain1 simply link to domain1 (same address).

pwiniacki’s picture

I see when I try to add redirect from page1/test to page1/test I get

"You are attempting to redirect the page to itself. This will result in an infinite loop."

So with Domain Access page1=page2=page3 so it is possible to set URL redirect like page3/test to page1/test but it will not work - infinite loops.

batigol’s picture

I have tested few other modules - mainly Global Redirect, i18n, Domain Access and Pathauto. It seems that none of them have impact on this issue. It's only related with DA but it's not fault of DA itself.

batigol’s picture

So anybody tried to fix redirect domain access redirections from domain/subdomain to other domain/subdomain without getting infinite loops ?

batigol’s picture

Version: 7.x-1.0-beta4 » 7.x-1.0-rc1

Same thing with rc1.

spamator12’s picture

Yep rc1 did not fix this issue for me also. Maybe we should ask if DA maintainers can do something about it ?

pwiniacki’s picture

Tested with latest versions of all modules. This is still a pain in the ass.

evanmwillhite’s picture

Any update on this? I am running into it as well (7.x-1.0-rc1 & DA 7.x-3.4).

batigol’s picture

Nope. After one and a half year it's still a pain in the ass...

pwiniacki’s picture

It does not works. No ETA.

pwiniacki’s picture

Issue summary: View changes

edit

anton-staroverov’s picture

Issue summary: View changes

+1

anton-staroverov’s picture

Status: Active » Fixed

Finally I solved the issue.

Checkout this module: https://www.drupal.org/project/domain_path_rewrite

It supports domain-specific redirects!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pwiniacki’s picture

Ahh issue has been closed so I miss you answer. Gonna test it asap!

Hmmm after checking this again - with rc2 redirect module (https://www.drupal.org/node/1796596 and https://www.drupal.org/node/905914) I don't get redirect loops (uninstalled global redirect)...

Could you test if this fixed the issue for you? I would like to test domain_path_rewrite but since I'm unable to reproduce the mentioned problem I can't. Anyway thank you for your efforts Tony!

pwiniacki’s picture

Status: Closed (fixed) » Needs review
dave reid’s picture

Status: Needs review » Fixed

Going to mark as fixed based on the feedback in #16.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.