Should me URLs be uppercase or lowercase
-
I'm in the middle of doing a bunch of 301 redirects for me site. Should I make them Lowercase, uppercase, or does it matter? Also, do I want to be using hyphens (-), or underscores (_)?
Any other tips?
EX:
http://www.stupid.com/golf-slippers.html
OR
-
Are you serving the same page for both /MBA and /mba? You should set up a 301 redirect from one to the other.
In Analytics, you can set a custom filter to make your URLs case insensitive, but I don't believe that'll fix the data currently in your account, it'll only fix them going forward. That process is outlined here: http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=90397.
My URLs are all lowercased so I can't actually find an example in my account to test, but when I do an advenced filter and select Include Page with the match type of "Matching RegExp" and try URLs with uppercase characters, Analytics appears to be making the query case insensitive. So you can try that as well.
If the prior paragraph didn't work for you, you can do this on a URL by URL basis, by doing an advanced search by regular expression and substituting in "[M|m][B|b][A|a]" for "mba".
-
John and Team,
Suppose I have a site with 8000 pages and a small percentage of them in google analytics are showing up twice because the pages are linked through upper and lowercase links. So in Google analytics (GA) there would be two rows:
http:///www.blah.com/MBA
Is there a type of query I can run in GA to allow me to find all pages where the url is the same except for the upper and lower casing? I want to go into GA at Standard Reporting -> Content -> all pages and do an advanced search.
-
Is the Short Title a redirect or the actual URL? If it's a redirect then it shouldn't be a problem. You can also use canonical if you want to use the lowercase and host the other page. But that's is a sloppy solution.
-
I agree with this completely. Lowercase with hyphens is my preference. Some E-commerce companies (let's use Volusion as an example), give you the choice to use hyphens or underscores in a product's URL. This is nice and they even offer you the ability to write what the URL will be under the "Short TItle" option. However, this "Short Title" option is what will show in your URL AND the link text for a "Related Product" listing on the site. So if I want the link text to look normal when someone sees a Related Product link, I have to capitalize the text I put for the "Short Title" which will then cause the URL to be in Caps as well. This is a pretty significant flaw in their system and I have alerted them to the problem numerous times. Hopefully they will get it fixed soon.
-
I agree. Lowercase in the example above. For ease of direct typing.
But when advertising just a website URL in print offline, caps. www.BulwarkPestControl.com is easier to read than www.bulwarkpestcontrol.com.
-
The fact a Caps create a 404 error on LAMP site is a pet peeve of mine - so is the fact Google thinks mix cases on IIS are separate (thus duplicate) URLs.
Too arbitrary to be picky about and cause user frustration.
Thanks goodness at lease DoMaInS can be what ever.
-
I like lowercase because when I type URLs by hand, I don't think to capitalize things. If you capitalize things, you have to get the casing right to make the URL valid (unless you're setting up all sorts of fancy redirects), otherwise you a 404 and are left scratching your head. Also, I agree with Dan that it looks better.
Hyphens vs. underscores is a classic question; Matt Cutts says to go with hyphens: http://www.youtube.com/watch?v=Q3SFVfDIS5k. I like that better too.
-
Justin
I personally prefer lowercase because to me it looks better. And I prefer hyphens for the same reason, and it seems like these days everyone from WordPress right to the SEOmoz site does it that way.
-Dan
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
-
Change URL or use Canonicals and Redirects?
We just completed a conclusive a/b test on a client's landing page. The new page saw a 30% bump in conversions, yay! Now what? Option 1: Change the url of the new page to that of the old page, retire the old page. Option 2: Redirect the old page and anything that was pointing to it to the new page, make the new page the canonical. I'm afraid of option 1 because I think Google's WTF penalty will be a bit harsher than option 2, but I wanted to sanity check that here. Any thoughts or experienced advice would be very appreciated!
Technical SEO | | LindsayDayton0 -
Keyword Phrase in URL structure
Wondered the best URL structure, to include a major keyword phrase. Our clients' case is that their domain name is not the main keyword. So should we include the keyword phrase in the URL structure to list all their office locations: A - www.website.com/anxiety-treatment/denver/1001
Technical SEO | | ErnieB
or
B - www.website.com/denver/1001 Would this be considered keyword stuffing? We'd like "A" above to rank for keyword phrases related to "anxiety treatment denver", etc.0 -
Url folder structure
I work for a travel site and we have pages for properties in destinations and am trying to decide how best to organize the URLs basically we have our main domain, resort pages and we'll also have articles about each resort so the URL structure will actually get longer:
Technical SEO | | Vacatia_SEO
A. domain.com/main-keyword/state/city-region/resort-name
_ domain.com/family-condo-for-rent/orlando-florida/liki-tiki-village_ _ domain.com/main-keyword-in-state-city/resort-name-feature _
_ domain.com/family-condo-for-rent/orlando-florida/liki-tiki-village/kid-friend-pool_ B. Another way to structure would be to remove the location and keyword folders and combine. Note that some of the resort names are long and spaces are being replaced dynamically with dashes.
ex. domain.com/main-keyword-in-state-city/resort-name
_ domain.com/family-condo-for-rent-in-orlando-florida/liki-tiki-village_ _ domain.com/main-keyword-in-state-city/resort-name-feature_
_ domain.com/family-condo-for-rent-in-orlando-florida/liki-tiki-village-kid-friend-pool_ Question: is that too many folders or should i combine or break up? What would you do with this? Trying to avoid too many dashes.0 -
Optimal Structure for Forum Thread URL
For getting forum threads ranked, which is best and why? site.com**/topic/**thread-title-goes-here site.com**/t/**thread-title-goes-here site.com**/**thread-title-goes-here I'd take comfort in knowing that SEOmoz uses the middle version, except that "q" is more meaningful to a human than "t". The last option seems like the best bet overall, except that users could potentially steal urls that I may want to use in the future. My old structure was site.com/forum/topic/TOPIC_ID-thread-title-goes-here so obviously any of those would be a vast improvement, but I might as well make the best choice now so I only have to change once.
Technical SEO | | PatrickGriffith0 -
Disallowing https URLs
It there a problem disallowing all https URLs to be indexed in order to avoid duplication? This is the article recommending this practice - http://blog.leonardchallis.com/seo/serve-a-different-robots-txt-for-https/ Thanks!
Technical SEO | | theLotter0 -
Not sure which URL to use for 301 redirect
A client has new website design completed by another developer, was launched in April of this year. No 301 redirect was set up so duplicate content is an issue. Client has had a website with same domain name for about 10 years, but has not had any SEO work completed before or since his new site design. For non-www there are 6 referring links - 1 considered to have authority, for www there are also 6 but 3 considered to have authority. More links seem to coming from www than non-www. But for one of the clients keywords they are ranked #1 for their area and that links to their non-www address. And even though no redirects set up by developer, non-www has had far more visits according to Google Analytics. So many basics that still need to be done for site: no meta-descriptions on any page, H1 and page titles could use keywords, call to action moved above fold, etc. Considering this is a new site, and new SEO work and many more inbound links needed, does it matter which address I redirect to? _Cindy Barnard
Technical SEO | | CeCeBar0 -
Re-write of url
Hi, I would like your input on the following dilemma I am wanting to target the keyword "download xml". at the moment Google indexes us on page 2 and indexes the page www.ourdomain.com/download.aspx I would like to rewrite the url to be /download-xml-editor.aspx The current page is a pr5 and is our most trafficked and externally inked to page. My thoughts are quite mixed on how to do this. approach 1: re-write url of "download.aspx" and setup permanent 301 redirect of download.aspx to download-xml-editor.aspx approach 2: create a new page called download-xml-editor and 301 redirect that to the current stronger page which is download.aspx approach 3: create new page called download-xml-editor with unique content and try and get that page to rank over time, allowing it to build up links and not compromise the current page, then later 301 redirect How would you deal with this and what are your recommendations
Technical SEO | | LiquidTech0