Bulletproof Way to Redirect Traffic from Old to New

There are many solutions online to redirect all the traffic from your old website to new website safely. The method below is one of the bulletproof ways that is sure to work. It will make sure all traffic is redirected from the old domain to new domain. Just plug this into notepad and save it as a Htaccess file on your old domain.

Its very important to perform these changes so you can keep your google rating on the new domain. Here is a list of some scenarios and the code needed to make it work. Use the one which fits your case the best.

Scenario 1

Redirect from www.olddomain.com/thispage to www.newdomain.com/thatpage

[codebox 1]

Scenario 2

Redirecting from www.olddomain.com to www.newdomain.com

[codebox 2]

Scenario 3

Redirect from www.olddomain.com/thispage.html to www.newdomain.com/thisfolder

[codebox 3]

Scenario 4

Redirect from www.samedomain.com/thisfolder/thispage.html to www.samedomain.com/newfolder/newpage.html

[codebox 4]

Scenario 5

To change from .php to .html file extensions

[codebox 5]

Scenario 6

To redirect from www.samedomain.com to samedomain.com (removing www extension)

[codebox 6]

Scenario 7

To redirect from samedomain.com to www.samedomain.com (adding www extension)

[codebox 7]