Should I rename URLs to use hyphens instead of underscores?
-
Hello.
We are about to launch a redesigned and significantly expanded site that has traditionally used underscores as separators between words in its URLs.
Would you recommend replacing all the underscores with hyphens? That would then require many 301 redirects to maintain any links that might be out there.
Thank you!
-
Thank you, Nitin.
-
Thank you very much, Peter!
-
I'd tend to agree with Nakul on proceeding with caution - while Google doesn't necessarily treat "_" as a word separator, the URL is just one relatively small ranking factor. There are many risks in a site-wide 301-redirect, especially when you're redesigning. If the redesign runs into SEO trouble, you're not going to be able to separate the many changes, and that could delay fixing any problems.
The exception would be if you're planning to change a lot of the URLs anyway, as part of the redesign. Then, I'd go ahead and do it all at once. Hyphens are a nice-to-have - I'm just not sure that, practically, the risks outweigh the rewards. It does depend a lot on how you're currently ranking and whether the URLs are causing you any major headaches.
-
You should use a hyphen for your SEO URLs. Google treats a hyphen as a word separator, but does ****nottreat an underscore that way. Google treats underscore as a word joiner — so seo_moz is the same as seomoz to Google. In fact using dashes over underscores will have a (minor) ranking benefit.
Also Note that 301 redirects passes 90%-99% value to redirected link so earlier you do it the better.
Hope it makes sense.
-
Thanks, Nakul!
-
If you are just doing a redesign that does not entail any URL changes, I would suggest keep them as is.
On a side note, how are you ranking compared to your competition ?
You could potentially test 1-2 pages on your site, change _ to - and see if it makes any difference. And yes, you would need to do 301 redirects and that would pass most (not all) of your link juice. It can and still work fine. So before you do something like this on a large scale, test it on a small scale if you can.
It also depends on how much authority your site has in Google ? Do your breadcrumbs show up in Google SERPS ? And so on.
I hope this helps you come to the right conclusion.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Using rel=canonical
I have a set of static pages which were created with the purpose of targeting long tail keywords. That has resulted in Domain Authority dilution to some extent. I am now in the process of creating one page which will serve the same results but only after user selects the fields in the drop-down. I am planning to use rel=cannonical on the multiple pages pointing back to the new page. Will it serve the purpose?
Technical SEO | | glitterbug0 -
Why put rel=canonical to the same url ?
Hi all. I've heard that it's good to put the link rel canonical in your header even when there is no other important or prefered version of that url. If you take a look at moz.com and see the code, you'll see that they put the <link rel="<a class="attribute-value">canonical</a>" href="http://moz.com" /> ... pointing at the same url ! But if you go to http://moz.com/products/pricing for example, they have no canonical there ! WHY ? Thanks in advance !
Technical SEO | | Tintanus0 -
Should the date be included in news URLs
My website is not a news or magazine site, but we do have a news section updated 2-3 times a week with industry related news. We are working on a new structure for the URLs.
Technical SEO | | theLotter
Should the date be included in the URL? From this article from Google I understand that as long as we submit a news sitemap it doesnt matter whether or not numbers are included in the URL, correct? https://support.google.com/news/publisher/answer/68323?topic=116650 -
Do keywords in url parameter count?
I have a client who is on an older ecommerce platform that does not allow url rewrites in anyway. It would cost a ton of money to custom dev a solution. Anyways right now they have set up a parameter on their product urls to at least get the keyword in there. My question is, will this keyword actually be counted since it is in a parameter? An example url is http://domain.com/Catalog.aspx?Level1=01&Level2=02&C=Product-name-here Does this 'product-name-here' count as having the keyword in the url according to google?
Technical SEO | | webfeatseo0 -
Category URL Duplicate Content
I've recently been hired as the web developer for a company with an existing web site. Their web architecture includes category names in product urls, and of course we have many products in multiple categories thus generating duplicate content. According to the SEOMoz Site Crawl, we have roughly 1600 pages of duplicate content, I expect primarily from this issue. This is out of roughly 3600 pages crawled. My questions are: 1. Fixing this for the long term will obviously mean restructuring the URLs for the site. Is this worthwhile and what will the ramifications be of performing such a move? 2. How can I determine the level and extent of the effects of this duplicated content? 3. Is it possible the best course of action is to do nothing? The site has many, many other issues, and I'm not sure how highly to prioritize this problem. In addition, the IT man is highly doubtful this is causing an SEO issue, and I'm going to need to be able to back up any action I request. I do feel I will need to strongly justify any possible risks this level of site change could cause. Thanks in advance, and please let me know if any more information is needed.
Technical SEO | | MagnetsUSA0 -
MBG Tracker...how to use it?
So I am a new blogger that has been submitting guest blog posts to a number of different blogs. It was recommended that I use the MBG Tracker so I can track the back links. The problem is that I am totally lost on how to use this tool. As I said before I am new to this whole thing and I am not really sure what constitutes a "base link" and a "back link." In the author bylines we are linking to different pages within a larger website. If anyone can help me I would really appreciate it!
Technical SEO | | Stroll0 -
What are the impact of doing URL Rewriting instead of 301 redirections whille optimizing a blog?
In WordPress, with the ALL In ONE SEO pluggingm we've optimze the permalinks to show more keewords in the URL'. What can be the impact?
Technical SEO | | webit400 -
Does using parentheses affect the crawlers?
Quick question: if you using a parantheses around a keyword, do search bots still recognize the keyword? Fox ex: Welcome to a website about the National Basketball Association (NBA). Will the bots recognize that I'm trying to optimize to NBA and not (NBA)? Is this different for tags vs. actual body copy?
Technical SEO | | BPIAnalytics2