Hello,

I installed drupal at mysite.com/drupal to test it and build a new site while the existing one was still up.

Now I want to move all the files to the root of mysite.com

When I do that the front page loads, shows the content, etc., but when I click on any link it gives me a 500 error.

When I tested this on a completely different server, I was able to move the files from the folder to the root and all the links stayed good.

I really don't want to have to rebuild the site with everything at the root, but I don't know what else to do. Suggestions?

Thank you!

Comments

vm’s picture

ensure that you moved the .htaccess file
ensure that you clear the cache tables after the move.

subpub’s picture

I did move the .htaccess file

I read about the clearing of the cache, but it will not even let me log in to do that via mysite.com/user

I get the same error message.

Thank you.

vm’s picture

clear your cache manually in the database using your db tools provided by your host. Typically phpmyadmin.

dman’s picture

#1 obvious thing to check - did you leave the .htaccess file behind? It's a 'hidden' file so often gets left out of simple file copys.
If not that...
#2 "All" links or just the ones embedded in text? Drupal-generated menus should move around with the site, although it's possible to embed hrefs into the HTML text areas that are NOT so portable.
#3 If even the menu ones don't work (and it's not a clean-urls problem) then I'd suspect you had $base_url hardcoded somewhere. Don't do that.
But it's probably #1

subpub’s picture

Hi,

Yes, I moved the .htaccess file. (There is an existing .htaccess file for the current site. I moved that into an "old files folder" on the server with all the current files. When I moved everything out of the drupal folder into the root, there was an .htaccess file there so I moved it along with all the other drupal stuff)

Yes, all links... pages, stories, menu items that are supposed to link to pages... I realize like the photos I uploaded into blocks or content, I would have to go back and edit the html to correct the path names, but, yeah, everything no longer links.

I have the clean-urls enabled.

You lost me with $base_url (lol)

Thank you!

vm’s picture

open settings.php and look at $base_url

subpub’s picture

Will do... thanks again!