Family Best Time >> Electronics

How to remove the string v =XXXX from WordPress URLs

Are you seeing a weird v=xxxx string in your WordPress URLs? Recently, one of our readers asked us how to get rid of the v=xxxx string from his WordPress URLs. This string is made up of seemingly random letters and numbers added as a parameter to your permalinks. In this article, we will show you how to easily remove the v=xxxx string from your WordPress URLs.

How to remove the string v =XXXX from WordPress URLs

Why are you seeing a v =XXXX string in WordPress URLs?

This string appears on websites that run an online store using WooCommerce. It is not a bug or a bug, but an actual feature of the plugin.

How to remove the string v =XXXX from WordPress URLs

The purpose of this string is to help WooCommerce calculate taxes and shipping based on the user's geographic location. The string helps make the feature compatible with WordPress caching plugins like WP Super Cache or W3 Total Cache.

However, if you don't need to calculate shipping and taxes based on different locations, you may have accidentally enabled this feature.

Let’s see how to easily disable it and remove random v=xxxxxx strings from WordPress URLs.

Removing v =xxxx String from WordPress URLs

You must first login to the WordPress admin area and go to the WooCommerce »Settings page.

On the General tab, you need to scroll down to 'Client default location' option.

How to remove the string v =XXXX from WordPress URLs

It would be set to 'Geolocate (with page caching support)'. You need to change it to 'No Default Location' or 'Store Base Address'.

Don't forget to click the Save Changes button to store your settings.

If you are using a caching plugin, you will need to clear your WordPress cache. After that, you can visit your website and the geolocation string will be gone from your WordPress URLs.

ِ

How to GeoLocate default location without URL string?

You can do this by selecting the 'Geolocate' option in the 'Customer default location' settings.

How to remove the string v =XXXX from WordPress URLs

However, this option is not compatible with static caching plugins, and will display incorrect shipping and tax information to users due to the previously cached page.

Running WooCommerce without caching is not recommended because it will decrease the speed and performance of your site.

If you must use Geolocate to calculate shipping and taxes on the fly, then for the time being you will have to tolerate the ugly string v=xxxx in your WordPress URLs.

We hope this article helped you learn how to remove the v=xxxx string from your WordPress URLs. You may also want to see our definitive list of the most common WordPress errors and how to fix them.

If you enjoyed this article, please subscribe to our WordPress YouTube Channel video tutorials. You can also find us on Twitter and Facebook.