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
Edit wp-config.php file
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);
Login to WordPress
Go to General Settings
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.
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.
Why IP as URL? Any reason or by mistake?
for a reason. I have successfully moved with all in one wp import. destroy old server deploy new server with reserved ip. very tiring
Possible, downgrade vultr solution with the same ip is just a reserved ip $3 monthly
See, exact same thing happened with me.
You are already rich, what will you do for $25 credit!
Rich people can not let the free stuff go away
you could have used your real name.
Even they know you’re not real!