If your Laogou VPS WordPress website always redirects to the non-www version of the domain, what should you do?

Anyone with some knowledge of website building knows that Laogou VPS sites are built using the WordPress platform. Laogou has always found that whether accessing logovps.com or www.logovps.com, it ultimately redirects to the non-www version of the domain: https://logovps.com. So, what should you do if your Laogou VPS (WordPress site) always redirects to the non-www domain? After some effort, Laogou finally solved this issue, which turns out to be quite simple.

Laogou first checked the domain management for the site. Both the www and non-www versions of the domain were properly configured, so the issue was not there:

Next, Laogou checked the MySQL database. In the `wp_options` table, the `siteurl` and `home` option_value values were both set to the non-www URL: http://logovps.com.

Laogou then attempted to change the `option_value` to http://www.logovps.com, as shown below:

Let’s check the results by visiting the Laogou VPS site.

Previously:

Now:

Now, whether accessing logovps.com or www.logovps.com, it redirects to https://www.logovps.com. The issue of non-www automatically redirecting to the www domain is resolved!