Community

Drupal installation doesn't work after moving it from domain to subdomain

I've had a Drupal 7 site on a One.com domain for a long period. I now need the domain for a Shopify site and have therefore made a redirect to Shopify. For the subdomain I've made a folder called drupal. The drupal installation should now be available at drupal.mydomain.com which works fine.

The problem is that I'm no longer able to log into the site. I get an access denied everytime. I'm not able to request new passwords as I'm just "redirected" to the same page again.

I've removed all cookies and emptied all cache and session tables. I use clean urls and a .htaccess file which I have not modified. I have tried to create a folder in sites/ called drupal.mydomain.com (copy of default/), but that hasn't helped. I only have ftp access to the server and can't create softlinks. I do have connection to the database, and my denied accesses are logged in watchdog.

I've searched Google for a week now, and have had help from friends, but without success. Can anybody here help me, please?

Comments

Hi. What if you would try to

Hi. What if you would try to disable Clean URLs and/or navigate to http://drupal.yourdomain.com/?q=user and enter login/password? Or /?q=user/password - would it work if you enter your login/email there? Are you sure your database contains your user record inside "users" table?

Solved using /update.php

Thank for your reply, yurg. But I fixed another way.

I ran an update with /update.php. This fixed the problem. Just set the variable $update_free_access in settings.php to TRUE temporarily.

nobody click here