Wordpress SEO Expert

Peter Warwick-Mahoney

  • SEO Overhaul
  • SEO Campaign
  • WP Support
  • Blog
    • SEO Emails
  • Praise

Permanently moving website to a new domain

July 17, 2013 by Peter Warwick-Mahoney

You really want to add this to your .htaccess file:

Redirect 301 / http://your-new-domain

Let’s break that down.

  • “Redirect” is pretty obvious, it tells the web server to redirect the request.
  • “301” is a special code that tells any search engines that come by that this change is permanent, and they should update their results to reflect the new URL. (Using “302” instead would set it as a temporary move.)
  • “/” just means the entire site, from the very top directory has been moved.
  • “http://your-new-domain” or indeed, whatever your new URL is, is the new domain that all requests should be sent to. Note the final “/” on the end.

Easy peasy! Now all bookmarks, and search engine results will still be valid and get people to your new address, with one short piece of code.

Filed Under: Hints & Tips, Nerd-stream Tagged With: 301, code, domain, htaccess, move address, redirect, url

Comments

  1. Peter WM says

    July 17, 2013 at 6:45 pm

    Maybe I should point out that I just did this myself, today. This very blog is now based at: http://petermahoney.me 🙂

Get FREE Wordpress SEO tips!

I send regular newsletters with WordPress SEO expert-level tips. Sign up to get them, along with my FREE e-book “Ongoing SEO Success”.

Did I mention they’re free!

Subscribe for free

Praise

I have over 2000 5-star feedback reviews (and I’ve never received less than the full five.)

Here’s just one example, from Mike who runs Costello Entertainments:

Migration, Hosting, SEO and Speed Work on our new website all completed quickly and efficiently and Peter was most helpful in fixing an issue with a Popover on the site as well. If you’re thinking about asking Peter to do a job for you or hesitating, JUST DO IT! – He knows programming and the internet inside out, he’ll get the job done for you professionally, with a smile. I wish I could call a plumber or a tradesman to do the jobs I can’t do myself with the same level of confidence.
Read a lot more.

Recent Blogs

  • SEO doesn’t affect your site’s front-end
    On my SEO Emails section (where I share helpful responses to commonly asked queries) I recently shared a not ...
  • Cumulative Layout Shift (CLS) for SEO & Speed
    Right, this is an interesting one. It’s technical, but has a very simple main recommendation (in large ...
  • Large Google Algorithm Update
    We’ve seen another core update from Google to their algorithm. They usually make updates of this size a ...
  • Case Study: Turning SEO work off
    I had a client recently who (for reasons exclusively to do with the inexperience of their website’s ...

Peter

About Peter

Contact

Let’s get started!

Just email me.

Topics

  • Backlinks (8)
  • Branding (9)
  • Code (9)
  • Content (14)
  • Featured (6)
  • Freebies (3)
  • General (8)
  • Google (54)
  • Hints & Tips (58)
  • Hosting (1)
  • Keywords (12)
  • Marketing (14)
  • Nerd-stream (159)
  • News (15)
  • Online community (13)
  • Opinion (22)
  • Search Engine Optimisation (SEO) (73)
  • SEO Emails (31)
  • Social networking (22)
  • Tools (11)
  • Tweets (13)
  • Tweets (1)
  • Uncategorized (138)
  • User experience (6)
  • Website Speed (4)
  • Wordpress (25)

Legal

  • Terms and conditions
  • Privacy policy
  • Disclaimer

Also read

  • Payment information

RSS

Peter Warwick-Mahoney, WordPress SEO expert blog

Recent Posts

  • SEO doesn’t affect your site’s front-end
  • Cumulative Layout Shift (CLS) for SEO & Speed
  • Large Google Algorithm Update
  • Case Study: Turning SEO work off
  • Reminder, JPGs are for photos

© Copyright 2021 Wordpress SEO Expert · All Rights Reserved · Site by Peter Warwick-Mahoney