By nsummy on
I've literally spent hours on this so I hope someone knows. I created a copy of my drupal 6 site, did the upgrade to 7 and got all of the modules updated. I then moved the newly upgraded site from the subdirectory into the root directory. I made sure settings.php and .htaccess were updated. Cleared the sessions and cache tables. The site is still looking for domain.com/subdirectory. The theme is broken and none of the links work. Is it even possible for move a website from a subdirectory into just the root. No one seems to know. Thanks in advance :)
Comments
It's certainly possible
It's certainly possible because I did it a few weeks ago. There may be some hard-wired URLs in your setup pointing to the old subdirectory. I had to add the following to my .htaccess file (my old subdirectory was called 'drupal').
# Redirect old URLs referencing the drupal subdirectory explicitly.
#
RewriteRule ^drupal/(.*)$ http://www.yoursite.com/$1 [R=301,L]
thanks, it turns out somehow
thanks, it turns out somehow my settings.php file was reverted back.