By gatsby0121 on
I have a site which works fine normally. If you hit the site normally, all is good and you can log in. However, we have a url which redirects to the main url. If you use that, and then try to log in, the login doesn't work.
Comments
Just some basic
Just some basic questions:
How are you redirecting?
Where are you redirecting from?
Redirect issue
The redirect is happening at a dns level. Literally we have 2 domain names pointing at the same IP. One domain allows us to login and users to create accounts the other lets us go through the process but just brings us back to the same page without an errors. Nothing appears to happen at all accept for a page refresh.
Any help would be greatly appreciated.
Hmmm, not sure. But these
Hmmm, not sure. But these are some things that might have to do with it/ or can solve it:
Have you tried setting the $base_url in settings.php in each of the sites to the respective domain name?
Would using subdomains solve this?
Also this search on 'multiple domains and settings.php' on drupal.org might provide some clues:
http://drupal.org/search/apachesolr_search/multiple%20domains%20and%20se...
Edit:
This search on 'multiple domains single ip' on drupal.org may help as well:
http://drupal.org/search/apachesolr_search/multiple%20domains%20single%20ip
Thanks for the additional
Thanks for the additional direction. I tried setting the base_url in the settings file but all that ended up doing is not letting me login to either site.
I'll dig through the search results and see if anything jumps out.
Did you manage to fix this
Hi
Im in a similar "mess". Just wondered if you managed to fix this and how?
Was it just change of the settings.php?
Kind regards Marcus
Try setting the cookie domain
Try setting the cookie domain in the settings file:
$cookie_domain = 'www.mysite.com'