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 URLs
URLs of my web pages are based on the titles of pages. For sampel, if a title page is called "product ABC", then the URL for this page is /product-abc. Google and all other search engines have indexed all pages. Now I want to change the titles of some sites. Should I change the URLs accordingly, or should I rather leave URLs as they are. SEO Best Practice says that keywords must be placed both in the title, and in the URL. I think that Google will think that pages have douplicate content with diffrent titles, and it comes to many 404 error, if I change the URLs. What do you recommend in this case?
Intermediate & Advanced SEO | | kian_moz0 -
URL Structure Question
Am starting to work with a new site that has a domain name contrived to help it with a certain kind of long tail search. Just for fictional example sake, let's call it WhatAreTheBestRestaurantsIn.com. The idea is that people might do searches for "what are the best restaurants in seattle" and over time they would make some organic search progress. Again, fictional top level domain example, but the real thing is just like that and designed to be cities in all states. Here's the question, if you were targeting searches like the above and had that domain to work with, would you go with... whatarethebestrestaurantsin.com/seattle-washington whatarethebestrestaurantsin.com/washington/seattle whatarethebestrestaurantsin.com/wa/seattle whatarethebestrestaurantsin.com/what-are-the-best-restaurants-in-seattle-wa ... or what and why? Separate question (still need the above answered), would you rather go with a super short (4 letter), but meaningless domain name, and stick the longtail part after that? I doubt I can win the argument the new domain name, so still need the first question answered. The good news is it's pretty good content. Thanks... Darcy
Intermediate & Advanced SEO | | 945010 -
Move to new domain with new design and url
I have an e-commerce website that is template based and I have absolutely no control over it. Each product have quite good ranking in google. However, we are creating new website using asp.net mvc and host in azure. It has totally new design. Since I have no control over my old website, I cannot force the server to redirect each product page to my new website product page. This is what I have done so far. I told my old website provider to point my domain (ex. domainA.com) to new nameserver at dyndns I created a new zone and add a http redirect service to new domain (http://www.domainB.com) with 301 redirect I'm pretty sure that this is not enough since there is a difference in url like this Old: www.domainA.com/product/70/my-product-name New: www.domainB.com/product/1/my-new-product-name New route config: {product}/{id}/{name} As you can see, the structure is similar but the product id and name is different. Do I need to catch the incoming id and name from old website and 301 redirect it again to the correct one? If so, this will cause double 301 redirect and would this be a SEO problem? Thank you in advance for your answer.
Intermediate & Advanced SEO | | as142208080 -
Which URL is better for SEO?
We have a URL structure question: Because we have websites in multiple countries and in multiple languages, we need to add additional elements to our URL structure. Of the two following options, what would be better for SEO? Option 1: www.abccompany.com/abc-ca-en/home.htm Option 2: www.abccompany.com/home.abc.ca.en.htm
Intermediate & Advanced SEO | | northwoods-2603420 -
Url structure of a blog
We are trying to work out what the best structure for our blog is as we want each page to rank as highly as possible, we were looking at a flat structure similar to http://www.hongkiat.com/blog/ where every posts is after the blog/ but not in category's although the viewers can look in different category's from the top buttons on the page- photoshop - icons etc or we where going to go for the structured way- blog/photoshop/blog-post.html the only problem is that we will end up 4 deep at least with this and at least 80 characters in the url. any help would be appreciated. Thanks Shaun
Intermediate & Advanced SEO | | BobAnderson0 -
Crazy long weird URLs... help
I have a HTML website, mysite1.com, and I placed a link on the home page to another one of my sites, mysite2.com Today I checked the links to mysite2.com in Majestic and noticed 24 links coming from the mysite1.com instead of just one link. The URLs from mysite1.com that are showing in Majestic are like this mysite1.com/?epl=4donafvFK3fMXxZXMWQRQLodmPchoXCK5C7-kbBv_agkwlkJrZAoaSDVUlhqFmUqt0f8c2Q6jF6GO6DNMnbidqRsikriF-IEBEt5okmICLEB0FxP36GrsxoPGQ3SGBo1PVR7itDUA4CYmjypn5gi mysite1.com,was inherited from a friend and I believe that it was originally built in Frontpage. Can you tell me how I can get rid of these multiple links as I only want 1 showing from the home page Thanks in advance
Intermediate & Advanced SEO | | JohnPeters0 -
Renaming a URL
Hi, If we rename a URL (below) http://www.opentext.com/2/global/company/company-ecm-positioning.htm
Intermediate & Advanced SEO | | pstables
to http://www.opentext.com/2/global/products/enterprise-content-management.htm (or something similar) Would search engines recognize that as a new page altogether? I know they would need to reindex it accordingly, so in theory it is kind of a "new" page. But the reason for doing this is to maintain the page's metrics (inbound links, authority, social activity, etc) instead of creating a new page from scratch. The page has been indexed highly in the past, so we want to keep it active but optimize it better and redirect other internal content (that's being phased out) to it to juice it up even more. Thanks in advance!
Greg0 -
Canonical URL Tag Usage
Hi there, I have a .co.uk website and a .ie website, which have the exact same content on both, should I put a canonical tag on both websites, on every page? Kind Regards
Intermediate & Advanced SEO | | Paul780