Hey,

I am currently considering to change my domain name (because now it has a local extension .be , and I want to extend this to the european extension .eu).
My website (a small drupal based guitar site in Dutch: http://www.guitarfiles.be) has rather good google rankings and I want to keep it this way as much as possible.

I don't want to change my website hosting, the site will stay exactely the same, just the domain must change from www.guitarfiles.be towards www.guitarfiles.eu

I have been reading some tips to use 301 redirects, but I was wondering if someone can share his/her experience with moving a drupal site.

thanks,
regards
Tom

Comments

50percent’s picture

In general I think any good ranking you have with the .be domain is stuck with that domain, so your only workaround is to add the new domain alongside it.

If you can set up your hosting so that both domains point to the same site, you could try something like this in the .htaccess file of your Drupal installation. Note I haven't tested the following but it ought to work.

RewriteCond %{HTTP_HOST} ^www\.guitarfiles\.be$ [NC]
RewriteRule (.*) http://www.guitarfiles.eu/$1 [L,R=301]

#again but without the "www.", so "http://guitarfiles.be/" will also get redirected
RewriteCond %{HTTP_HOST} ^guitarfiles\.be$ [NC]
RewriteRule (.*) http://www.guitarfiles.eu/$1 [L,R=301]

If that works it should detect a request like www.guitarfiles.be/somepage and redirect the browser to www.guitarfiles.eu/somepage. From then on the user is browsing as www.guitarfiles.eu. You shouldn't need to change your Drupal installation at all, just as long as your host supports having two domains on the same site.

joemoraca’s picture

Talk with your hosting company there should be no problem pointing both domains at your drupal install

Joe Moraca
http://www.moraca.org