Heart+Soul Design Studio

Custom Wordpress development, maintenance and security. Home of the AHA! Academy.

  • start hereHome
  • get the deetsAbout US
    • Disclosures
    • Privacy
    • Service TOS (Terms of Service)
  • email us hereProject Inquiry
    • Client ♥
  • read onThe Blog
  • get the goodsShop
    • Migrations
    • Plugins
    • Services
    • Site Security
    • Cart
    • My Account
    • Checkout
    • Shop TOS & Refund Policy
  • our recommendedResources

Join the Newsletter

Get Tips · Tricks & Goodies
right in your inbox!

How To 1 to 1 Redirect WordPress To A New Domain

Tweet
Share
Pin
Reddit
Flip
Pocket
0 Shares

One of the most asked questions I get is How do I  1 to 1 (post to post) redirect wordpress to my new domain?

Occasionally you need to move from one url (domain)  to another and you don’t want to lose all the traffic that you’ve worked to get on the old domain.

After you’ve done the grunt work of copying files, folders and database (s) you need to do a good old fashioned 301redirect so that when folks visit http://yourolddomain.com/link they land on http://yournewdomain.com/samelink.

1. Go to your .htaccess file in your cpanel of your OLD domain (this is a hidden file so be sure you have the show hidden files box checked in the file manager)

cPanel File Manager v32. Then use the CODE EDITOR  to add the following at the very beginning of the file.  If you’re not using www on your domain names, be sure you drop that from the items as needed.

[pastacode lang=”markup” message=”” highlight=”” provider=”manual”]

# BEGIN WordPress
RewriteEngine On RewriteCond %{HTTP_HOST} ^www.oldsite.com 
RewriteRule (.*) http://www.newsite.com/$1 [R=301,L] 
# END WordPress

[/pastacode]

3. Remove any other lines that may be present in your .htaccess for the old site.

4. Save your work.

Does working inside your WordPress installation ‘freak’ you out? Totally afraid you’ll blow your site out of the water? Fear Not! We can help, just visit our Project Inquiry and we’ll get you taken care of in a blink of the eye. Generally I advise bloggers against making changes to their .htaccess file unless they’re very experienced. This is a simple change that most can do. However, if the thought of changing anything in your htaccess makes you queasy,  feel free to use our project request form and we’ll  get in touch as soon as possible.

Tweet
Share
Pin
Reddit
Flip
Pocket
0 Shares

Filed Under: Code Snippets

[wp_ad_camp_1]
Please note our rules.kitteh


By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. We hold comments in moderation and we reserve the right to edit and/or delete your comment if it pertains only to keywords, is spammy or if it contains no viable reference to the article on which you are commenting. Thanks for understanding.


Older
Newer
  • Facebook
  • Instagram
  • Pinterest
  • Twitter

sovrn Holdings, Inc.

Get A Leg Up On Your Competition

SEMrush

Hello You Designs - Designer Quality Wordpress Themes
The owner of this website, Heart+Soul Studio, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking Heart+Soul Studio to Amazon properties including, but not limited to, amazon.com, endless.com, myhabit.com, smallparts.com, or amazonwireless.com.

Categories

  • Tips and Tricks
  • Bloggers
  • SEO & Content Development
  • Code Snippets
  • Security

The Shop

  • Shop
  • Cart
  • Checkout
  • My Account
  • Shop TOS & Refund Policy

Get Social

  • Twitter
  • Facebook
  • Pinterest
  • Instagram

The Links

  • Home
  • The Blog
  • Shop
  • Client Praise
  • Project Inquiry
  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter

Copyright © 2025 · Heart+Soul Design Studio · Made With ❥ In Louisiana

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.