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

dailydose

#74

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


#75

@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']);

define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);
  1. Save changes.

  2. Login to WordPress

  3. Go to General Settings

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


#76

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


#77

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.


#78

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


#79

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


#80

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


#81

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


#82

Why IP as URL? Any reason or by mistake?


#84

for a reason. I have successfully moved with all in one wp import. destroy old server deploy new server with reserved ip. very tiring :joy:


#85

Possible, downgrade vultr solution with the same ip is just a reserved ip $3 monthly :sweat_smile:


#87

They also scammed me :frowning:
image

@GulshanKumar I need those $25 free credits :disappointed_relieved:


#88

I opened this ticket, wish me luck :fearful:

UPDATE #1:


#89

See, exact same thing happened with me. :disappointed_relieved::confounded:


#91


#92

You are already rich, what will you do for $25 credit! :yum:


#93

Rich people can not let the free stuff go away :slightly_frowning_face:


#94

you could have used your real name.


#95

:fearful::expressionless::expressionless:


#96

:joy: :joy: :ok_hand: Even they know you’re not real!