
网址 WordPress
您是否在 WordPress URL 中看到奇怪的 v=xxxx 字符串?最近,我们的一位读者问我们如何从他们的 WordPress URL 中删除 v=xxxx 字符串。该字符串由看似随机的字母和数字组成,作为参数添加到永久链接中。在本文中,我们将向您展示如何轻松从 WordPress URL 中删除 v=xxxx 字符串。
您是否在 WordPress URL 中看到奇怪的 v=xxxx 字符串?最近,我们的一位读者询问我们如何从他们的 WordPress URL 中删除 v=xxxx 字符串。该字符串由看似随机的字母和数字组成,它们作为参数添加到永久链接。在本文中,我们将向您展示如何轻松从 WordPress URL 中删除 v=xxxx 字符串。

为什么在WordPress URL中看到v = XXXX字符串? (Why Are You Seeing v=XXXX String in Your WordPress URLs?)
This string appears on websites running an 使用 WooCommerce 的在线商店. It is not a bug or an error, but an actual feature of the plugin.
该字符串显示在使用 WooCommerce运行网上商城网站上。 这不是错误或错误,而是插件的实际功能。

The purpose of this string is to help WooCommerce calculate tax and shipping based on a user’s geographic location. The string helps make the feature compatible with WordPress caching plugins like WP超级缓存 or W3 总缓存.
该字符串的目的是帮助WooCommerce根据用户的地理位置计算税金和运费。 该字符串有助于使该功能与WordPress缓存插件(如WP超级缓存或W3 总缓存)兼容。
但是,如果您不需要根据不同地点计算运费和税费,那么您可能不小心启用了此功能。
但是,如果您不需要根据不同地点计算运费和税费,则您可能不小心启用了此功能。
让我们看看如何轻松禁用它并从 WordPress URL 中删除随机 v=xxxxxx 字符串。
让我们看看如何轻松禁用它并从 WordPress URL 中删除随机 v=xxxxxx 字符串。
从WordPress URL中删除v = xxxx字符串 (Removing v=xxxx String from WordPress URLs)
First you need to login to your WordPress 管理区域 and head over to the WooCommerce » 设置 page.
首先,您需要登录到WordPress 管理区域并转到WooCommerce » 设置页面。
Under the General tab, you need to scroll down to “默认客户位置” option.
在常规标签下,您需要向下滚动到“默认客户位置”选项。

它将设置为“地理定位(支持页面缓存)”。您需要将其更改为“默认情况下无位置”或“商店基本地址”。
它将设置为“地理位置(支持页面缓存)”。您需要将其更改为“默认情况下无位置”或“存储基址”。
不要忘记单击“保存更改”按钮来存储您的设置。
不要忘记单击“保存更改”按钮来存储您的设置。
If you are using a caching plugin, then you will need to 清除你的 WordPress 缓存. After that you can visit your website, and the geolocation string will disappear from your WordPress URLs.
如果您使用的是缓存插件,则需要清除 WordPress 缓存 。 之后,您可以访问您的网站,并且地理位置字符串将从您的WordPress URL中消失。
А
А
如何在没有URL字符串的情况下定位默认位置? (How to GeoLocate Default Location Without the URL String?)
您可以通过选择“默认客户位置”设置中的“地理定位”选项来执行此操作。
您可以通过选择“默认客户位置”设置中的“地理位置”选项来执行此操作。

但是,此选项与静态缓存插件不兼容,并且由于之前缓存的页面,它会向用户显示不正确的运输和税务信息。
但是,此选项与静态缓存插件不兼容,并且由于之前缓存的页面,将向用户显示不正确的运输和税务信息。
Running WooCommerce without caching is not recommended because it will slow down your site’s 速度和性能.
不建议在不缓存的情况下运行WooCommerce,因为这会减慢您网站的速度和性能 。
如果您必须使用 Geolocate 即时计算运费和税费,那么您暂时必须容忍 WordPress URL 中丑陋的 v=xxxx 字符串。
如果您必须使用 Geolocate 即时计算运费和税费,那么目前您必须在 WordPress URL 中使用丑陋的 v=xxxx 字符串。
We hope this article helped you learn how to remove v=xxxx string from your WordPress URLs. You may also want to see our ultimate list of the 最常见的 WordPress 错误 and how to fix them.
我们希望本文能帮助您学习如何从WordPress URL中删除v = xxxx字符串。 您可能还想查看我们最常见的 WordPress 错误最终列表以及如何修复它们。
If you liked this article, then please subscribe to our YouTube 频道 for WordPress video tutorials. You can also find us on 推特 and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube 频道 WordPress视频教程。 您也可以在推特和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-remove-vxxxx-string-from-wordpress-urls/
网址 WordPress