I have developed a Drupal site on localhost; I then exported it to a production site, and made the required changes in settings.php. The index page opens fine, but when I log in, the URL is still referring to localhost. I tried to set the base URL in settings.php, but it did not help.

I am using Drupal 7.10.

  • Did you modify the .htaccess file previously? – Scorchio Feb 8 '12 at 12:09
  • nopes i did not do any modifications in .htaccess, but you could tell me what are the settings that i should look for in .htaccess i can double check that – Rakesh Juneja Feb 8 '12 at 13:09
  • Are you using the domain module? securepages module? – acouch Feb 8 '12 at 21:22
  • No i am not using any such module.I dont know from where it is taking localhost/ path for user log in – Rakesh Juneja Feb 9 '12 at 19:18
  • ok, i found it, There were lot of cache tables with values localhost/..... although i ahd already cleared cache under performance, but seems these values left so had to manually delete them – Rakesh Juneja Feb 10 '12 at 5:26

Try clearing all Drupal caches at yourwebsite.domain/admin/config/development/performance

  • ok, as per your advise i cleared cache under Performance, but still the same. – Rakesh Juneja Feb 8 '12 at 10:47
  • @RakeshJuneja Did you solve the issue? can you please add your answer.. – GIRI Nov 21 '14 at 4:36
  • @RakeshJuneja cleared the cache but didn't solve the issue. – GIRI Nov 21 '14 at 4:39
  • Try to clear all entries in table cache_page – Rakesh Juneja Nov 22 '14 at 5:31
  • cleared all the entries in table 'cache_page'. Also used Devel module to clear cache. but same problem. Do we need to edit .htaccess file @RakeshJuneja – GIRI Nov 23 '14 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.