justhost
aws
cdncloud
dotdot
huocloud
recloud

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

racknerd

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:

What to do if Laogou VPS (WordPress site) always redirects to the non-www domain?

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.

What to do if Laogou VPS (WordPress site) always redirects to the non-www domain?

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

What to do if Laogou VPS (WordPress site) always redirects to the non-www domain?

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

Previously:

What to do if Laogou VPS (WordPress site) always redirects to the non-www domain?

Now:

What to do if Laogou VPS (WordPress site) always redirects to the non-www domain?

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!

未经允许不得转载:老狗VPS测评 » If your Laogou VPS WordPress website always redirects to the non-www version of the domain, what should you do?
标签: