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!


【AD】美国洛杉矶/香港/日本VPS推荐,回程电信CN2 GIA线路,延迟低、稳定性高、免费备份_搬瓦工

【AD】炭云:36元/年/1GB内存/20GB SSD空间/500GB流量/5Gbps端口/KVM/香港/国际线路LUMEN