Should I shorten my urls?
-
For my informational site I have a lot of urls that are way too long. When I first created the site, I wrote a script that takes out the common words of a post and fashions a url. So, for example, if the first few words of a question were:
Hi there, I have a question about back pain. I'm wondering what drugs would be good for relief and how I can get some help?
then my url may be:
www.mydomain.com/question?id=123-question-back-pain-wondering-drugs-good-relief-how-get-some-help
Once I got learning about seo I realized that these urls were too long but I never did anything about them. Should I be shortening these, or is my time best spent doing something else?
-
That is brilliant Marcus. The if-else idea regarding the ID makes so much sense. I will leave the old ones as is and change the ones from this point on.
Thanks!
p.s. I noticed that seomoz does the same thing with the Q&A urls. This one's not too long because I asked a short question but some of the question urls in here are quite long!
-
Hey
That's a solid point from EGOL - if there are ones that are working well at the moment, don't rock the boat and look to improve new content. The dynamic thing does make it a bit more tricky but really, it should not be a massive problem.
If your URLs are generated by the script and you have some kind of ID relating to the content you are adding it should be easy enough to put something in place that uses better quality URLs for new content.
If contentID > x Then
Build new URL Structure
Else
Build old URL Structure
End
Whether you do this entirely in the code or with some URL rewriting to add polish is up to you and in some part depends on how things work on your back end but...
Where there is a will there is a way and if you can shorten future URLs it will provide some benefit.
Maybe you could do some testing to see if it is going to be worth your while
- Create a few hard coded new pages over the next month
- Track them against the current pages
- see if there is a statistical improvement in clicks, conversions, impressions etc
I am pretty much of the opinion that if you can change them going forward, you should as they are not brilliant at the moment but I would not expect miracles from this though so don't bust a blood vessel over it.
Cheers
Marcus -
You could definitely redirect URLs using .htaccess and mod_rewrite. An example rule would be something like
RewriteRule ^q/(.*) /?question=$1
or
RewriteRule ^q/(.*)-(\d+) /?question=$2-$1
See the mod_rewrite documentation or just ask a competent developer about the rules above.
-
I definitely agree with the "messy" thing. Every few months I think, "Oh, I should fix that long url thingy", but then my brain gets shorted out trying to think of how to do it. I wanted to do a htaccess redirect but because the url is written with a php script I just can't figure out how to do it.
Invariably what happens is that I manage to get my mind onto other more exciting things and then I just do nothing and I end up having more and more ugly long urls.
-
ahh... this question is getting messy...
I don't know exactly how the rel-canonical tag will work in this situation.
-
Thanks guys. One of my problems is that all of these urls are generated dynamically. So, I'm thinking of changing the script on that page so that it generates a shorter url. Then, I think I can use the rel-canonical tag to tell Google that the short urls are the ones to use.
If I do that will the long ones drop out of the index?
-
If you can change future URLs without changing the historic URLs then I would leave the old ones "as is". (Meaning... change future but not old ones)
It will take work to change them and if you do a 301 then there might be some link power lost.
I always like to base my decisions at least in part on analytics, so if these pages are pulling nice traffic and ranking in the SERPs then I would not do a thing about the old ones.
Just an opinion.
-
Hey, they are too long and don't really make any sense so... I think they need improving.
In an ideal world your URL should describe the content of the page as it will help win clicks and may give you an SEO boost through links that use the URL itself as the anchor.
Shorten them though, should be easy enough and certainly gives a usability boost.
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
-
Changing URL to a subdomain?
Hi there, I had a website www.footballshirtcollective.com that has been live since July. It contains both content and eCommerce. I am now separating out the content so that; 1. The master domain is www.footballshirtcollective.com (content) pointing to a new site 2. Subdomain is store.footballshirtcollective.com (ecommerce) - pointing to the existing site. What do you advise I can do to minimise the impact on my search? Many thanks Mike
Intermediate & Advanced SEO | | mjmaxwell0 -
Best SEO url woocommerce, what to do?
Hi! Today we have our product categories indexed (by misstake) and for one of our desired keywords, a category have the nr 1 rank. By misstake, we didnt set nofollow, noindex on our categories, just tags, archives etc. We are now migrating to from Ithemes Exchange to Woocommerce and ime looking on improving our SEO urls for the categories. For keyword "Key1" we rank with this url: http://site/product-category/Key1. The seo meta title and description where untouched when we launched the site last spring so it doesnt look so good.. The plan is to stripe out product-category and instead ad some description ( i have a newly written text of 95 words, 519 letters without space with they keyword precent 5 times in a natural way ) to that particular category and have the url as following: http://site/key1 and then have a 301 redirect for the old http://site/product-category/Key1. What do you think of this? What shall i consider? on the right track? Grateful for any help! // Jonas
Intermediate & Advanced SEO | | knubbz0 -
Location in URLs question
Hi there, my company is a national theater news publisher. Quick question about a particular use case. When an editor publishes a story they can assign several discrete locations, allowing it to appear on each of those locations within our website. This article (http://www.theatermania.com/denver-theater/news/full-casting-if-then-tour-idina-menzel_74354.html), for example, appears in the Los Angeles, San Francisco, and Denver section. We force the author to choose a primary location from that list, which controls the location displayed in the URL. Is this a bad practice? I'm wondering if the fact that having 'Denver' in the URL is misleading and hurts SEO value, particularly since that article features several other cities.
Intermediate & Advanced SEO | | TheaterMania0 -
Is it best to have products and reviews on the same URL?
Hi Moz, Is it better to have products and reviews on the same or different URLs? I suspect that combining these into one page will help with rankings overall even though some ranking for product review terms may suffer. This is for a hair products company with tens of thousands if not hundreds of thousands of reviews. Thanks for reading!
Intermediate & Advanced SEO | | DA20130 -
SEO within the URL /
If I were optimizing for 'marketing success' and my URL structure was domain.com/marketing/success would that count? I'm not sure if the '/' affects the keyword term. My assumption is that it does, but I wasn't 100% sure. Thanks!
Intermediate & Advanced SEO | | KristinaWitmer0 -
URL mapping for site migration
Hi all! I'm currently working on a migration for a large e-commerce site. The old one has around 2.5k urls, the new one 7.5k. I now need to sort out the redirects from one to the other. This is proving pretty tricky, as the URL structure has changed site wide. There doesn't seem to be any consistent rules either so using regex doesn't really work. By and large, the copy appears to be the same though. Does anybody know of a tool I can crawl the sites with that will export the crawled url and related copy into a spreadsheet? That way I can crawl both sites and compare the copy to match them up. Thanks!
Intermediate & Advanced SEO | | Blink-SEO0 -
Tagged URL ranking organically
I've noticed that one of our GA tagged urls are ranking organically & therefore is skewing the referral data. The campaign that we were tracking is no longer active but the link still works, but it's going to an old landing page. I asked our developers if we could redirect it but they said that it didn't work. Does anyone have some advise or a solution for this? Thanks!
Intermediate & Advanced SEO | | Elihn0 -
Received "Googlebot found an extremely high number of URLs on your site:" but most of the example URLs are noindexed.
An example URL can be found here: http://symptom.healthline.com/symptomsearch?addterm=Neck%20pain&addterm=Face&addterm=Fatigue&addterm=Shortness%20Of%20Breath A couple of questions: Why is Google reporting an issue with these URLs if they are marked as noindex? What is the best way to fix the issue? Thanks in advance.
Intermediate & Advanced SEO | | nicole.healthline0