I am moving a Drupal site to a new hosting company. I have not yet moved DNS to this host. I can load the home page of the site via:
http://ip-address/~accountid/subdirectory/
However when I click on any links or try to get into my admin account via /?q=user/login, I get the login page but when I enter my id and password, I get a 404.
I have truncated the cache, history, sessions and watchdog tables. I have cleared the cache in my browser and deleted cookies.
In settings.php I have the base url configured as:
$base_url = 'http://ipaddress/~accountid/subdirectory';
Yesterday I successfully migrated a different Drupal installation to this new hosting company and am not having this problem. The only difference is that this successful installation is that it is Drupal 5.1 and the one I am having the problem with is 4.7.
Any clues on what I am doing wrong on this migration?
Comments
do you not made changes in
do you not made changes in .htaccess?
-------------------------
puzzlingames.
OK. I didn't know about
OK. I didn't know about that. I changed RewriteBase to:
RewriteBase /~accountid/subdirectory
That did it.
Thanks for your help.
How to rewritebase correctly ????
If I am using holeepassion.freehostia.com subdirectory ???
should I replace that with subdirectory ????
what about the accountid ???? my username ???
http://www.holeepassion.com
Positive actions for saving EARTH
Thank you ehamburg
Was having the same problem and your fix solved it.