• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1085
  • Last Modified:

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?
0
katwill
Asked:
katwill
  • 4
  • 2
1 Solution
 
nanharbisonCommented:
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 /
0
 
nanharbisonCommented:
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.
0
 
katwillAuthor Commented:
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!
0
Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

 
katwillAuthor Commented:
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.
0
 
katwillAuthor Commented:
I ended up having to move everything to a directory with the new domain name, and that fixed the issue.
0
 
katwillAuthor Commented:
Not ideal, but it worked.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now