Hello. I am hoping someone can help me with a problem I've encountered while learning Drupal. I've recently developed a site for a client who, now that it's approved, wants it live on their own server. Here's the problem: I originally built the site, by recommendation, on my own computer by using MAMP to build the database. I then uploaded it to my hosting server in the same folder it was built in for them to review (www.mywebsite.com/theirfolder). And with the thought that eventually it would stay there for hosting and redirecting the DNS to that folder on my server, I allowed them to make changes to the site before going live. Now they want it on their own server. So I uploaded the files via ftp (Cyberduck) and exported and imported the database to their server (phpMyAdmin). Now the site won't work. The front page comes up without any images and none of the links work. I'm pretty sure that it is trying to read all of the files (images, paths, etc) from the path that was created to the folder that it was originally in instead of laying loose on the server. (www.sitename.com/foldername/sites/default/files for instance) The problem is that I can't figure out how to redirect the paths now. I can't even get into the admin menu. I've tried /?=user and that let's me login, but I can't go any further in the admin area. Can someone PLEASE help me figure this out? I'm sure it's probably not extremely hard, and there may be an easy solution that I will kick myself for not figuring out, but I'm obviously new to Drupal and would really appreciate some help since I have to have this done by the end of this weekend. Thanks you in advance if you can help.

Oh, and sorry for the long winded explanation. Just wanted to fit what I know in there.

Comments

DanB0328’s picture

Can anyone help? I'm starting to lose faith in this Drupal community as no one has ever replied to this or any of my other posts. Please, if anyone can help, I would really appreciate it.

seanray’s picture

you need to use replace() function of mySql to replace all the content which use the wrong url in the content, this won't be too difficult as there are only few tables are used to store nodes.

jayakrishnanj’s picture

If your problem is only the images and files path , then you can make it work by the following way.
1. try to login with example.com/?q=user/login or example.com/user/login.(you should be able to login with or without CLEAN URL enabled)
2. If you installed admin menu, flush all caches and run the cron.(base path will get corrected by cron for few images and css files).to correct remaining files path install this module(http://drupal.org/project/pathologic).

3. try admin menu by example.com/?q=admin or example.com/admin.

let me know if you have any issues.