Welcome! Log In Create A New Profile

Advanced

Trying to make a WordPress site be www, which is currently non-www

Posted by lukefiretoss 
Trying to make a WordPress site be www, which is currently non-www
February 23, 2016 03:34PM
Followed the correct method for setting the URL to be www.

https://easyengine.io/tutorials/nginx/www-non-www-redirection/

Okay so the site was redirecting www to be non-www. But since there are quite a few backlinks that where www. Need to change the WordPress site so that it is www. Currently it is non-www. The issue was when changing the site config file for Ngnix.

server {
listen 80;
server_name localhost 999.999.99.99 www.domain.com domain.com;
root /var/www/domain.com/web;
if ($http_host != "www.domain.com") {
rewrite ^ http://www.domain.com$request_uri permanent;
}

Then restart Ngnix, that part works fine. But when updating the site URL and home URL to be both www in the WordPress options db table. I can not log into the dashboard site.

I know I will need to run a site update so that all links are www from non-www.
https://wordpress.org/plugins/velvet-blues-update-urls/

Any help would be appreciated.
Re: Trying to make a WordPress site be www, which is currently non-www
February 24, 2016 04:38AM
You need change config site_home in wp_options table to get effect

http://www.vnbooking.com
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready