Link to home
Start Free TrialLog in
Avatar of katwill
katwill

asked on

Can't login to Drupal site after domain change

I have a Drupal site, which has not moved servers, but has changed domain names.  I cannot login, using either a login block or example.com/user.  I changed the cookie domain in settings.php (base url was never set, btw), cleared the cache and session tables, my browser cookies, and still...nothing.  

However, I can still login at the old domain.  

If it helps, the old domain was something like example.dreamhosters.com.  The new domain is something like example.org.  Nothing ever moved on the server end.  The only change that was made was that I redirected the new domain to point to the example.dreamhosters.com directory.  Any clues?
Avatar of nanharbison
nanharbison
Flag of United States of America image

Go into the main .htaccess file and find these lines, around lines 108-110
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /
See what happens if you uncomment the last line.
 RewriteBase /
I have set up Drupal on dreamhost several times, and have made the same change you have without any problem. If this suggestion above doesn't work, try contacting Dreamhost.
Avatar of katwill
katwill

ASKER

Tried your solution, to no avail. I've opened up a ticket with Dreamhost.  Thanks for trying, though.  And, if anyone else has any thoughts, I'm open!
Avatar of katwill

ASKER

What I got back from Dreamhost was completely unhelpful:

"Try the suggestions mentioned here and see if it helps:

https://drupal.org/node/92100

If it does not, try contacting Drupal and see if they can assist. If
there is anything else you need help with, please let me know! Thanks!
Have a great day!"

So, I am leaving this open, in the hopes that someone here might still have a solution.
ASKER CERTIFIED SOLUTION
Avatar of katwill
katwill

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of katwill

ASKER

Not ideal, but it worked.