Hello everyone, welcome back to King Solutions, my name is Philip King.
Before we begin, I would like to ask a favor from you. If you like our videos, then please click on the Like button and subscribe to our YouTube channel to show your support.
You can find more video tutorials here: / philipking
You can check out the King Solutions website here: http://kingsolutions.com
In this tutorial, I will show you how to move WordPress from subdomain to root domain. As a bonus, the method used here to move a WordPress site from subdomain to root domain will also preserve your SEO rankings as well.
This is the most straight forward process to get WordPress out of the subdomain and into the root directory.
define('WP_HOME','http://mysite.com');
define('WP_SITEURL','http://mysite.com');
http://mysite.com/wp-login.php
{IfModule mod_rewrite.c}
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ [NC]
RewriteRule ^(.*)$ "http://domain.com/$1" [R=301,L]
{/IfModule}
As YouTube does not allow angle brackets, I have substituted curly brackets in the above code. You will need to swap them over.
Watch video How to Move WordPress from SubDomain to Root Domain online without registration, duration hours minute second in high quality. This video was added by user Philip King (KsStepByStep) 31 October 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,806 once and liked it 107 people.