Special characters in URL
-
Hi There,
We're in the process of changing our URL structure to be more SEO friendly. Right now I'm struggling to find a good way to handle slashes that are part of a targeted keyword.
For example, if I have a product page and my product title is "1/2 ct Diamond Earrings in 14K Gold" which of the following URLs is the right way to go if I'm targeting the product title as the search keyword?
- example.com/jewelry/1-2-ct-diamond-earrings-in-14k-gold
- example.com/jewelry/12-ct-diamond-earrings-in-14k-gold
- example.com/jewelry/1_2-ct-diamond-earrings-in-14k-gold
- example.com/jewelry/1%2F2-ct-diamond-earrings-in-14k-gold
Thanks!
-
Jonaz just to add to what others said..
#1 would be the most logical answer.
/ (forward slash) indicates a new directory so you can't use that.
% is reserved for character encoding so you shouldn't use that.
_ (underscore) joins as one word
and 12ct would be wrong
-
doesn't seem to, no
-
Quick follow-up question: Does google treat the phrases "half" and "1/2" as the same?
-
You could totally replace common occurrences:
- 1/2 = half
- 1/4 = quarter
- 1/3 - third
- etc
Then just remove the less common ones entirely.
-
I personally would go with #1. Definitely not #4, you never want special characters in the URL. The reason I say number 1 is because it separates the 1 from the 2 in your 1/2. #2 could be confused for a 12ct diamond earring, WOW. #3 I typically avoid underscores in all URLs.
To sum up my choice is #1. Looks cleanest and when you optimize your page with the 1/2 ct wording, Google is smart enough to see that. Overall, it won't probably make a huge difference in the end.
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
-
301 redirects for all urls - legal dispute
The website in question is a very high traffic website with substantial credibility in it's subject matter (sorry, can't share more details) that delivers an overwhelming majority of traffic from SEO, much of which is new visitors. A legal dispute has resulted in both parties agreeing to forward a percentage of the total URLs to alternative websites (only 1 website for each party). All URLs for the domain will be forwarded elsewhere. It does not make sense to me that the "sum of the parts" will be as strong once the redirects are implemented but I am looking for feedback. It is fair to say that the alternative domains of each party are no where near as strong as the domain being "parted out." Will the SEO juice be distributed to each domain in full? Will both parties lose out substantially? Feel free to ask for clarifications and I'll do the best I can given the legal parameters. Thanks.
Technical SEO | | ReachMaineAgency0 -
Localizing URLs Path - Hreflang
Hello, This is a simple question regarding how URLs should be managed for proper results with the hreflang tags. Right now, we have a website in English and German. The hreflang tag is working properly. This is how we currently have it: https://www.memoq.com/ https://de.memoq.com/ But we will soon change the way we localize our web, moving out of the sub-domain structure. There is this possibility of localizing the URLs path, but I was wondering if the hreflang tag would work in such case. The new structure would look something like: https://www.memoq.com/why-memoq https://www.memoq.com/de/warum-memoQ So my question is: If we localize the keyword in the path of the URL, will the tag still work? Or do they need to be in the same language than the English version. Thanks!
Technical SEO | | Kilgray1 -
Starting a Blog and URL Structure Advice
Hello SEOmoz Community, We are going to start a blog on our website and have a slight dilemma. Our site is a .Net site and the blog platform we've chosen (BlogEngine) only allows us to use the following url structure: www.domain.com/blog/post/post-name. We've looked at other .Net blog software and this one meets all of our needs except for the ideal URL Structure. We would like to remove the /post/ directory; however have not technically found a way to do it. We wanted to get some opinions on whether or not we should just start with this URL structure and not worry about the extra directory, or work to find another solution that eliminates this extra directory. Ideally we want to keep the posts as close to the root as possible for link juice distribution, and the extra directory could get in the way. Also, if anyone has any advice on a more flexible .Net blog platform, suggestions would be greatly appreciated. We thank you so much in advance for your time and help.
Technical SEO | | All-Star-Vacation-Homes0 -
Purchased biz with good URL, not sure what to do with it...
First, thanks in advance for any help I can get with this one. My company leads guided hiking tours in national parks all over the West. We purchased a company with a fantastic URL that focuses on our our top revenue-producing park, and they've been in business for more than 14 years, and have had that URL the whole time. Their site is horribly designed and optimized, but they do well anyways. We are absorbing his business into ours for other reasons, but keeping the name as a DBA. I was originally planning on redesigning and optimizing the site, so we'd have 2 websites out there directing people to us. But I'm beginning to learn that's maybe not smart, even if the content is original. So should I 1. continue with a redesign of his site and have 2 sites out there. If so, what's the minimum % of duplicate content I should shoot for? 2. do a 301 redirect to my main website - would that even help or would it nullify the benefits completely? Again, thanks for any input!
Technical SEO | | scottcundy0 -
URL rewriting causing problems
Hi I am having problems with my URL rewriting to create seo friendly / user friendly URL's. I hope you follow me as I try to explain what is happening... Since the creation of my rewrite rule I am getting lots of errors in my SEOMOZ report and Google WMT reports due to duplicate content, titles, description etc For example for a product detail, it takes the page and instead of a URL parameter it creates a user friendly url of mydomain.com/games-playstation-vita-psp/B0054QAS However in the google index there is also the following friendly URL which is the same page - which I would like to remove domain.com/games-playstation-vita/B0054QAS The key to the rewrite on the above URLs is the /B0054QAS appended at the end - this tells the script which product to load, the details preceeding this could be in effect rubbish i.e. domain.com/a-load-of-rubbish/B0054QAS and it would still bring back the same page as above. What is the best way of resolving the duplicate URLs that are currently in the google index which is causing problems The same issue is causing a quite serious a 5XX error on one of the generated URLs http://www.mydomain.com/retailersname/1 - , if I click on the link the link does work - it takes you to the retailers site, but again it is the number appended at the end that is the key - the retailersname is just there for user friendly search reasons How can I block this or remove it from the results? Hope you are still with me and can shed some light on these issues please. Many Thanks
Technical SEO | | ocelot0 -
Advice on strange URL problem
I'm considering doing some pro bono work for a local non-profit and upon initial review they have a number of serious issues but there is one in particular I'd like to check my thinking on. The developer who set up the site some years ago implemented a javascript redirect on their root domain so that it redirects to: http://domain.com/wordpress This is wrong for all kinds of reasons and I want to recommend eliminating this redirect and getting rid of the 'wordpress' part of the path altogether. However, the site is quite established with good PR and they would take a hit by changing the path. I'd do 301 redirects to the new URLs that would not have 'wordpress' in the path in addition to other remediation. My question - is my thinking here good? It's worth it, right? The other option is just get rid of the weird redirect and keep 'wordpress' in the path but this seems unacceptable to me. Any opinions?
Technical SEO | | friendlymachine0 -
URLs: To Change or Not to Change
Hello, We recently launched a redesigned site in Drupal in December of last year. We are an eco-travel company. My current URL's look like this: /africa-and-middle-east/kenya-tanzania /central-south-america/galapagos-islands My pages have good term targeting grades, and the rankings for the terms we are targeting - "kenya and tanzania safaris" and "galapagos islands cruises" are decent, but not great - most are on page 2 or 3. The one URL where I targeted our most important term, "amazon river cruises," I am still on page 2. /central-south-america/amazon-river-cruises My questions are: Did I miss an opportunity with the rest of the URL's, and should I consider changing the rest to more targeted terms with 301s? Since the new site launched in January, perhaps I have not given enough time for my new URL's to index and mature. Would it be easier to set up landing pages with unique article content that targets terms such as "galapagos islands cruises" and "kenya and tanzania safaris"? If so, how can I do it in such a way as to not "compete" with the pages I want to drive them to? This also raises the question of redirecting the same URL twice i.e. I would have 2 redirects in place for the same url e.g. from the former site to the new site, and yet another redirect to the most-recent URL. Is that a problem? Sorry if I've asked too many questions in one post. 😉 Any advice appreciated.
Technical SEO | | csmithal0 -
How to proceed with domain switch AND url change
Hi, in a few weeks we'll do a major change on our website. This involves over 1.5 million pages indexed in Google driving substantial amount of our traffic. Basically we have 2 types of changes: subdomain switches to domain:
Technical SEO | | TruvoDirectories
ex. product.company.com will become www.product.com
for this we know how to manage DNS and Apache rules different url patterns, basically replacing ugly urls by pretty urls
for this we have advanced 301-mapping rules set up Here is the question - what is best way to proceed with these 2 changes in order to preserve rankings and organic traffic: Do both changes simultaneously? First do url changes, than the domain switch Can you please share your thoughts?0