Solved

Can't login to Drupal site after domain change

Posted on 2014-03-10
6
951 Views
Last Modified: 2014-03-16
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
Comment
Question by:katwill
  • 4
  • 2
6 Comments
 
LVL 17

Expert Comment

by:nanharbison
ID: 39917293
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
 
LVL 17

Expert Comment

by:nanharbison
ID: 39917296
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
 

Author Comment

by:katwill
ID: 39917526
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:katwill
ID: 39917806
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
 

Accepted Solution

by:
katwill earned 0 total points
ID: 39920507
I ended up having to move everything to a directory with the new domain name, and that fixed the issue.
0
 

Author Closing Comment

by:katwill
ID: 39932361
Not ideal, but it worked.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now