Moving a Drupal site to a new host or domain name

If you are moving attached files in your Drupal site to a new domain name, the following SQL query to run on the files table is a lifesaver:

UPDATE `files` SET `filepath` = REPLACE(`filepath`, "sites/old.domain.name/files/", "sites/new.domain.name/files/");

Simply replace 'old.domain.name' and 'new.domain.name' with your respective values and run the query!

Drupal version: 

Comments

Add new comment | arxic Drupal

I blog often and I really appreciate your content.
This article has truly peaked my interest. I'm going to take a note of your website and keep checking for new details about
once a week. I opted in for your RSS feed too.

Add new comment | arxic Drupal

Pretty element of content. I simply stumbled upon your blog
and in accession capital to assert that I acquire
in fact loved account your weblog posts. Any way I will be subscribing for
your augment or even I fulfillment you access constantly rapidly.

Add new comment | arxic Drupal

Just want to say your article is as astounding. The clearness in your post is just spectacular
and i can assume you are an expert on this subject. Fine with
your permission let me to grab your RSS feed to keep up
to date with forthcoming post. Thanks a million and please carry on the
rewarding work.

Add new comment | arxic Drupal

I seriously love your site.. Very nice colors &
theme. Did you develop this amazing site
yourself? Please reply back as I'm wanting to create my very own website and would
like to find out where you got this from or exactly what the theme
is called. Cheers!

Add new comment | arxic Drupal

I'm really enjoying the design and layout of your site.

It's a very easy on the eyes which makes it much more pleasant
for me to come here and visit more often. Did you hire out a developer to
create your theme? Fantastic work!

Add new comment | arxic Drupal

You really make it seem so easy with your presentation however
I in finding this topic to be really one thing that I believe I would
never understand. It sort of feels too complex and extremely vast for
me. I'm looking forward for your subsequent put up,
I will try to get the hang of it!

Add new comment | arxic Drupal

Wow, superb blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your site
is magnificent, let alone the content!

Add new comment | arxic Drupal

Somebody essentially lend a hand to make seriously posts I might state.
That is the very first time I frequented your web page and thus far?

I amazed with the analysis you made to create this particular post extraordinary.
Magnificent job!

Add new comment | arxic Drupal

Hi there everybody, here every person is sharing such experience, thus it's nice
to read this webpage, and I used to pay a
quick visit this webpage daily.

Add new comment | arxic Drupal

Great post. I was checking constantly this blog and I am inspired!
Extremely useful information specially the remaining part :) I maintain such information a lot.
I was seeking this particular information for a long time.
Thank you and good luck.

hey

I read this post completely concerning the resemblance of latest and earlier technologies, it's amazing article.|

Add new comment