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, duration hours minute second in high quality that is uploaded to the channel Philip King (KsStepByStep) 31 October 2017. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 12,806 times and liked it 107 visitors.