Hi,
I'm not sure its a domain access issue and i apologize if it is not the right place to ask that kind of question.
I configure subdomain using domain access.
Got in addition the following submodules:Domain Blocks, Domain Theme, Domain Toggle.
Modules that can effect login: LoginToboggan, Pathauto.
When user tries to login to the subdomain it get redirected to default domain.
To make it clear - after the redirection the user is not logged in - only redirected to front page of the default site.
Here is the redirection rules in htaccess file:
RewriteCond %{HTTP_HOST} ^sub.example.com$ [NC]
RewriteRule ^(.*)$ http://www.sub.example.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Please help.
Comments
Comment #1
agentrickardFirst, thanks for opening this new issue.
Does this happen if you disable LoginToboggan? It might also be a Domain Toggle issue. DA will only issue a redirect if you try to access an inactive domain without proper permissions.
Take a look at the rendered HTML of the login form, too. If it is pointed at the primary domain, you may have an issue. Be sure you aren't hard-coding $base_url in settings.php, too.
Comment #2
chenop commentedHi agentrickard ,
You're last comment has done the magic.
I had hard coded $base_url in settings.php.
I don't know how i missed that and i apologize for that.
I worked couple of days on that issue, Thanks for your support.
Comment #3
chenop commented