Do you want to remove the v=xxxx string from your WordPress URLs?
Recently, one of our readers who uses WooCommerce asked us how to get rid of the v=xxxx string from their 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 v=xxxx string from WordPress URLs How to Remove v=xxxx string from WordPress URLs](https://www.wpbeginner.com/wp-content/uploads/2017/10/removevstringwp.png)
Why Are You Seeing v=XXXX String in Your WordPress URLs?
The v=xxxx string appears on websites running an online store using WooCommerce. It is not a bug or an error but an actual feature of the WooCommerce plugin.
![String with letters and numbers added to WordPress URLs by WooCommerce String with letters and numbers added to WordPress URLs by WooCommerce](https://www.wpbeginner.com/wp-content/uploads/2017/10/stringinwpurls.jpg)
The purpose of this string is to help WooCommerce calculate shipping and taxes based on a user’s geographic location. The string helps make the feature compatible with WordPress caching plugins like WP Super Cache or W3 Total Cache.
Now, if your store doesn’t require geolocation-based calculations for shipping and taxes, then this string may not be unnecessary. Plus, it’s good practice to simplify your site’s URLs and make them more SEO-friendly.
With that in mind, let’s take a look at how to easily disable and remove the random v=xxxx strings from your WordPress URLs.
Removing v=xxxx String From WordPress URLs
First, you need to log in to your WordPress admin area and head to the WooCommerce » Settings page.
In the General tab, you need to scroll down to the ‘Default customer location’ option.
![The default customer location setting in WooCommerce The default customer location setting in WooCommerce](https://www.wpbeginner.com/wp-content/uploads/2017/11/default-customer-location-woocommerce.jpg)
If the v=xxxx string appears on your site, then the default customer location will be set to ‘Geolocate (with page caching support).’ What you need to do is change it to either ‘No location by default’ or ‘Shop country/region’.
Finally, don’t forget to scroll down and click on the ‘Save changes’ button to store your settings.
![Clicking Save changes in WooCommerce Clicking Save changes in WooCommerce](https://www.wpbeginner.com/wp-content/uploads/2023/12/woocommerce-save-settings-min.png)
If you are using a caching plugin, then you will need to clear your WordPress cache. After that, you can visit your website, and the geolocation string will disappear from your WordPress URLs.
How to Geolocate the Customers’ Location Without the URL String
You may also want to enable the ‘Geolocate’ setting to charge your customers shipping and taxes according to their locations. This will not show the v=xxxx string in your WordPress website’s URLs.
Simply select the ‘Geolocate’ option in the ‘Default customer location’ dropdown. After that, click ‘Save changes’ below.
![Geolocate without caching Geolocate without caching](https://www.wpbeginner.com/wp-content/uploads/2017/10/geolocatewitoutcaching.png)
Keep in mind that this option is not compatible with static caching plugins. Plus, it will show incorrect shipping and tax information to users due to a previously cached page.
Running WooCommerce without caching is not recommended because it will slow down your site’s speed and performance.
If you need to use Geolocate to calculate shipping and taxes on the fly, then for the time being, you will have to tolerate the ugly v=xxxx string in your WordPress URLs.
For more details, please see our guide to geolocation targeting in WooCommerce.
Frequently Asked Questions (FAQs) About the V=XXXX String in WordPress URLs
Here are some of the most frequently asked questions about the v=xxxx string and geolocation in WooCommerce.
What is the v=xxxx string in WordPress?
WooCommerce creates the v=xxxx string to automatically calculate shipping and taxes for your customers around the world. The string is necessary if you are using a caching plugin on your WordPress website.
How do I use geolocation in WooCommerce?
To use geolocation in WooCommerce, you will need to go to WooCommerce » Settings » General and choose either ‘Geolocate’ or ‘Geolocate (with page caching support)’ from the ‘Default customer location’ dropdown.
Keep in mind that choosing ‘Geolocate (with page caching support)’ will add the v=xxxx string to your WordPress URLs. Additionally, selecting ‘Geolocate’ will not work if you are using a WordPress caching plugin.
How do I change my WordPress permalinks?
To set an SEO-friendly permalink structure for your WordPress website, you need to go to Settings » Permalinks. Here, we recommend that most sites choose the ‘Post name structure’ setting or create a ‘Custom’ structure.
For more details, please see our guide to SEO-friendly URL structures in WordPress.
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 list of the most common WordPress errors and our expert picks for the best WooCommerce plugins to grow your online store.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Tom says
Why is this v=xxxx string on all pages? It’s only needed at the check-out. I do use WP Rocket cache and ship to different zones.
WPBeginner Support says
That string is used to store the information which is why it stays on every page for the user.
Admin
Dennis Muthomi says
Thank you for this informative guide!
I’ve been running a WooCommerce store since back then in 2023 Jan for my t-shitrs, and those pesky v=xxxx strings in my URLs have been bugging me.
I appreciate the clear step-by-step instructions on how to get rid of them.
As an online store owner, I understand the importance of having clean, SEO-friendly URLs. Those random strings not only look unprofessional but could also potentially hurt my search engine rankings.
I’m glad to know that removing the strings is a simple process of changing the ‘Default customer location’ setting in WooCommerce. It’s good to have the option to disable geolocation if my store doesn’t require it.
Thanks again for this valuable information!
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
hesham alshermani says
Thank you , that is great
WPBeginner Support says
You’re welcome, glad our guide was helpful!
Admin
Ábel Nagy says
I have searched this for so long and have finally found it. Thank you!!!
WPBeginner Support says
Glad our guide was helpful!
Admin
angela h says
Thanks a lot!! Really helpful!
WPBeginner Support says
Glad it was helpful!
Admin
Taco says
Thank you bro, I thought it was elementor, somehow it slowed down the loading speed of my website
WPBeginner Support says
Glad our guide was helpful!
Admin
Kylie says
OMG!! Thanks a lot!! it freaks me out
but the thing is that does the V### code affect web Search ranking?
WPBeginner Support says
It does not affect your search rankings, it is for tracking user location.
Admin
Anderson Oliveira says
Excellent! I was goig crazy with that horrible URL. Thanks a Lot!!
WPBeginner Support says
Glad our guide could help!
Admin
Hector says
Thank you! I thought that it was due to Google Analytics so I’m glad it isn’t.
WPBeginner Support says
Glad we could help clear that up![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Mike says
The problem is, I didnt know about this ulr change until I logged out of WP. Now I am unable to log back in. What do I do???
WPBeginner Support says
You would want to log back into your site, you can take a look at our guide below for how to find your login:
https://www.wpbeginner.com/beginners-guide/how-to-find-your-wordpress-login-url/
Admin
César Bla says
thank you for sharing .. i wasted a lot of time till i found your post.
WPBeginner Support says
Glad we had a simple solution for you![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Shravan says
In our case we have to tolerate the string. My question is will it affect our seo in any capacity?
WPBeginner Support says
Normally it should not and most SEO plugins can fix any issues that may pop up.
Admin
Neelmani says
OMG!!!!! This just made my day. I have been trying to figure this out since forever. thank you guys so mcuh !!!!!!!!!!!!!
WPBeginner Support says
Glad our guide was helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Thompson Onoriode says
Wow! worked like magic. I have been fruastrated for weeks trying to figure this out – I thought it was my Theme.
Thank you for helping me out.
WPBeginner Support says
Glad we could help![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Yogeswararao says
Thank you so much for this article
This has helped me a lot
WPBeginner Support says
You’re welcome, glad you found our content helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Abby Buzon says
Ohhhh MG! I just “adopted” a website and no one knew why this was. They had a strange theme previously and had over 30 plugins. I’ve been searching files, scouring the waterfall, spent HOURS digging in FTP never once thought it was caused by this.
THANK YOU SO MUCH!
WPBeginner Support says
Glad our guide was helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Syed says
Wow, it’s worked for me by switching Default customer location to geolocate. Thank you very much
WPBeginner Support says
Glad our guide helped![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Celestine says
Thank you. The article saved me.
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Laz says
Thanks very much.
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Norman Battes says
Thanks , The article was really helpful.
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Jahanzaib says
Thanks for such informative article. By mistake, I switched the option for Geo-Location Caching and started this error. Thanks for this wonderful piece.
WPBeginner Support says
You’re welcome, glad our guide could be helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Felo says
Thank you so much for your help!
WPBeginner Support says
You’re welcome, glad our guide was helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Abatex says
Wow! I’m very happy now , I never thought I would remove minemine, my mind is at rest now . Thank you so much boss.
WPBeginner Support says
You’re welcome, glad our guide was helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Ramen Das says
Excellent solution, Thank you!
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Soum says
Does it hurts my SEO?
WPBeginner Support says
Removing the v= shouldn’t hurt your SEO
Admin
Francisco says
Awesomeeeee! I’ve never thought that the ?v= parameters on all my pages came from woocommerce, I was struggling with w3 cache and other plugins and it was woocommerce! thanks!!!
WPBeginner Support says
Glad our article could help![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Vishal Ghosh says
Thanks … This article saved lot of time of mine
WPBeginner Support says
Glad our guide could be helpful![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Naman Kumar says
Thanks for tips, really helped me a lot.
WPBeginner Support says
Glad our article could help![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
wendie says
thanks a million!
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Fenil Patel says
Thanks for your help.
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
shahab says
Thanks a lot.. very helpful
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Omary says
Thanks a lot, problem solved
WPBeginner Support says
Glad our guide could help![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Sanjeev says
It worked sure shot. Thanks!
WPBeginner Support says
You’re welcome![:)](https://www.wpbeginner.com/wp-content/plugins/classic-smilies/img/icon_smile.gif)
Admin
Bindeshwar Singh Kushwaha says
It has solved my problem.
Rahat Hameed says
Please Update the article How Install and setup Facebook Instant Articles?
It is totally changed now.
json camle says
Can you make a tutorial on – how to make sidebar “I need help with” that is a very good programming
Luke Cavanagh says
WooCommerce stores, well developed, should already be fast without page caching.