Migrate WordPress from Cloudways to Vultr with ServerPilot (In 1 hour)



I followed your guide @GulshanKumar and setup a demo blog, now my blog is able to access with both https://www.example.com and https://example.com.

How to redirect www to non-www version?


Don’t you know rich people have cards from all around the world? :thinking::thinking::thinking:


hmm… I am also about to signup and setup the vultr account for testing my test website first and then my main blog!

Hope my Indian Credit card will work! :slight_smile:


Good Luck :heart_eyes::+1:


Same thing happened with me and after that they removed the $25 credit which I got from @GulshanKumar link… :disappointed_relieved::persevere:




Thanks! I am only a newbie to WordPress and SEO. You people are expert! Me just learning now days only.


LOL, will I get the credit or not then? :disappointed_relieved:


@Saksham Did you created 2 accounts by mistake? Bcoz i mailed vultr few hours back for any discount. They are also forward me the same link of $25 credit, that gulshan has given.

I am yet to create an account with them. I was hoping to do it tonight!


I paid using PayPal but the name on PayPal and on Vultr was different so I think that was the reason. And I have another account also but that is separate from start.


Redirect from www to non-www

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^www\.gulshankumar\.net [NC]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://gulshankumar.net/$1 [R=301,L]

Learn more > Useful .htaccess code


Not working bro, when i tried to access with www it is not redirecting to non-www version


@Rakesh Okay… please try first this method

  1. Open /srv/users/serverpilot/apps/demo/public/

  2. Edit wp-config.php file

  3. Remove these three lines

define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);

  1. Save changes.

  2. Login to WordPress

  3. Go to General Settings

  4. Update www or non-www version whatever you want.


Do i need to delete the provided .htaccess or keep the code and edit wp-config.php


First, I would recommend deleting those three lines to ensure that WordPress respects your General Settings and do not override URL. Second, to force non-www (of course, with HTTPS) you can use .htaccess code that I shared.


Thanks @GulshanKumar it is working, I am using Cloudflare to force HTTPS


If you are using Cloudflare to force HTTPS, then you don’t need .htaccess seperately for it.


I am not using .htaccess to force HTTPS, I just wanted to redirect www to non-www, Now it is working.


i use ip as url, if move to new server i got new ip. create tutorial reserved ip vultr gulshan, i am confused. :fearful:


Why IP as URL? Any reason or by mistake?