Not sure if it's a bug, a feature or my miscofiguration. I just can't solve the problem, so asking you for help.
I created a subdomain on my site with "domain access" module. The problem is that after posting to a subdomain users get redirected to default domain. Say, I want to create a test.html page on subdomain sub.example.com. After posting I get redirected to example.com/test.html, not to sub.example.com/test.html .
I thought maybe it's because of shared URL aliases, so I created a new prefexed table for URL aliases for the subdomain. Now in Admin sections URL aliases different on default domain and the subdomain. But it didn't help, I still get redirected every time after posting a new content or editing existing content on subdomain.
Comments
Comment #1
pyotr777 commentedComment #2
pyotr777 commentedI experimented with settings.php and had some success.
I commented the following three strings:
# require_once '/www/drupal/sites/all/modules/domain/settings_custom_url.inc';
# require_once '/www/drupal/sites/all/modules/domain/domain_conf/settings_domain_conf.inc';
# require_once '/www/drupal/sites/all/modules/domain/domain_prefix/settings_domain_prefix.inc';
Now creating and editing subdomain content doesn't take me to the default domain. But still, when I login from a SUBdomain FRONT page I get redirected to default domain front page. Logging in from any other page of subdomain seem to work fine.
Comment #3
agentrickardThose three limes in settings.php are no longer needed in 6.x.2, so you need to read UPGRADE.txt. Upgrading correctly may fix the issue.
If it does not, this needs more detail, as it is very hard to replicate. See the original issue and follow-up there.
#227947: After editing nodes user is redirected to the main domain -- see especially the note and patch in comment #31 and #36.
Comment #4
pyotr777 commentedEditing settings_custom_url.inc as described in the patch (http://drupal.org/files/issues/227947-post-node.patch) did help. Thank you!
By the way, I need no upgrade. 6.x.2 was the first version of domain access I have installed. Those three lines in settings.php I inserted as was instructed in tutorial (http://www.trellon.com/content/blog/sharing-content-domain-access). Since I wasn't upgrading, I didn't read upgrade.txt.
Comment #5
chenop commentedHi,
I am a newbie and Got the same problem.
I created subdomain but every time that i loggin to subdomain it redirects me to the default main domain.
I got nothing marked in user defaults.
Please help.
Comment #6
chenop commentedComment #7
chenop commentedComment #8
agentrickardDomain Access itself does not issue redirects on login.
Please do not hijack issues, especially closed ones.
If you need support, start over with a new issue that describes the problem, and please list any modules you are using in the DA package _and_ any modules that affect the login process.