You might have noticed strange v=xxxx string in your WordPress URL. This string is comprised of an apparently arbitrary letter and numbers added as a parameter to your permalinks. In this article, I will demonstrate to you industry standards to effectively expel v=xxxx string from your WordPress URLs.
This string shows up on sites running an online store utilizing WooCommerce. It isn’t a bug or a blunder, yet a real component of the module.
The motivation behind this string is to enable WooCommerce to calculate tax and shipping based on a user’s geographic location. The string helps make the component good for WordPress storing modules like WP Super Cache or W3 Total Cache.
However, if you don’t need to calculate shipping and taxes based on different locations, then you probably accidentally enabled this feature.
Let’s see how you can easily disable it and remove the random v=xxxxxx strings from your WordPress URLs.
Removing v=xxxx String from WordPress URLs:
- Login to your WordPress admin area and head over to the WooCommerce » Settings page.
- Under the General tab, scroll down to ‘Default customer location’ option.
- Set to ‘Geolocate (with page caching support)’.
- Change it to either ‘No location by default’ or ‘Shop base address’.
- Click on the save changes.
- If you are using a caching plugin, then you will need to clear your WordPress cache.
For selecting GeoLocate Default Location Without the URL String:
Select the ‘Geolocate’ option in the ‘Default customer location’ setting.
Note: This option is not compatible with static caching plugins. This will show incorrect shipping and tax information to users due to the previously cached page.