Home » How to Optimize URLs for Humans and Search Engines?
SEO

How to Optimize URLs for Humans and Search Engines?

SEO (Search Engine Optimization) is something that shouldn’t be ignored if you want to get great amount of search engine traffic. It includes a set of strategies that are implemented both onsite and off site in order to improve website’s visibility in search engines. When it comes to Onsite SEO (Popularly known as On-page SEO), URL optimization is one of the biggest factors which should not be missed.

Let’s get to know what actually the URL is?

URL which stands for Uniform Resource Locator, is an address to locate a resource available on the internet. It is in the form of human readable text that replaces IP addresses that computer systems use to communicate with server.

I mean actually the website’s actual links are in the form of numbers something like 192.68.52.1 and these are mapped to some text based URL to make it readable.

Basic URL structures:

http://www.example.com/category/sub-category/page-name

or 

http://www.example.com/category/page-name

or 

http://www.example.com/page-name

Let’s understand the elements of URL

http: It stands for Hyper Text Transfer Protocol and it is a stateless protocol and it is the most used data transfer protocol over world wide web. [http://]

P.S. Recently https has been implemented which is more secure than http.

www: It stands for World Wide Web and it is an information system of interlinked hypertext documents that are accessed via the Internet. It has also commonly become known simply as the Web. [www] (Source: Wikipedia)

Domain: It is the most important part of URL. It is actually the name of a website such as techtricksworld.com is the domain name for this blog.

Domain is subject to availability which means one domain can be used by only one owner. So as techtricksworld.com is a domain registered with my name already so no one else can register it. [example.com]

TLD: It stands for Top Level Domain which can be either .com, .net, .info, .in, .org, .us and so on. [.com]

Subdirectory: This is actually a folder in which files are stored on the server. Files are even can be placed directly on the root. It is not important have subdirectory always, you can have it or not as per your choice. [www.example.com/category/page-name]

File Name: File name is part of the URL which comes at the end and it actually locates the main file or page. [www.example.com/category/page-name]

Now you are having a better insight about what actually the URL is and what are the elements of it.

Now when it comes to optimization of URLs, you cannot change anything in the primary stuff http://www and it will always be same so the optimization can only be done for the elements come after these.

Here are the ways to optimize your site’s URL for search engines and Humans:

url optimization

1. www Vs non www

You can use any kind of URLs either with www or without www but make sure that your blog should always open on one address.

There are many website owners missed to fix this issue and due to this when you type www.exaple.com then site will open with www and if you type only example.com then it will open without www.

Don’t get confused!

This is called as canonical issue and Google consider both www.example.com and example.com as separate site thus duplicate content issue can arise. It needs to be fixed in a way that even you type with www or without www; site should always open with the address you have fixed for it. Suppose you have set as www.example.com then either you type in your browser with www or without www website will always open as www.example.com.

This is also an important part of URL optimization because canonical issue is really bad as per SEO guidelines.

2. Choose a good Domain

The first element comes after http://www is domain which needs to be selected wisely because it cannot be changed later. You should keep these things in mind while choosing the domain:

1. Try to choose small and memorable domain name.

2. In the past, domains based on keywords worked well such as com or buycheapphones.com (domains are just used for example) but after Google’s EMD (Exact Matched Domain) update, things gone changed and keyword domain lost its value. Thus the good practise is to use a brandable domain name which can be remembered easily. Even if you want to keep your domain on keyword base then use either LSI (Latest Semantic Indexing) words or put any one word from keywords. Don’t just make your keywords as domain.

3. Choose TLD as per your business. Suppose your business is local in India then choosing .in domains will have advantage. If you are getting a domain for any organisation, .org will be better. Though .com domains are most preferable ones. Thus, if you don’t have any specific requirements then choose .com domain without any second thought. [Just for the sake that .com domains are very common and easily remembered by people]

4. Try not to get a hyphenated domain because people cannot remember this kind of URL structure. Such as, com is better than tech-tricks-world.com

3. Permalink Optimization

Now, you have your blog/website main domain URL ready and you need SEO friendly internal page URLs.

I have mentioned earlier in this post about different URL structures which are as:

http://www.example.com/category/sub-category/page-name

or 

http://www.example.com/category/page-name

or 

http://www.example.com/page-name

You can select any kind of URLs out of them. You can have /category/subcategory/page-name or just /page-name

[color-box]At times you start your WordPress blog with ugly or lengthy Permalink structure but later you come to know that it should be something better and shorter. In such case you need to change the permalink structure and you are done. Seems very simple but there arises problems of 404 errors, Old indexed URLs in Google when clicked goes to not found pages. Everything goes messed up! But don’t worry, I have written a post in which I have mentioned how to change permalink structure for an already established blog without loosing any traffic and SEO value. Read the post here >> http://goo.gl/6bVaVE [/color-box]

When you are dealing with an e-commerce website then you should have categorized links such as /electronics/mobile-phones/nokia-asha because this makes sense for users and even its good from search engine’s view as they can index the links category wise.

But when you are having a simple blog or information website then you should not have this kind of link structure. You might have seen many blogs have link structure like example.com/12/2014/page-name or example.com/gadgets/mobiles/nokia-asha.

Both of the structures are fine but it’s better to replace them from these example.com/page-name or example.com/mobiles/nokia-asha.

Why I am suggesting these?

Because lesser URL depth is better for Search Engine point of view and even it makes URL shorter which is good and memorable. Longer URLs are not recommended.

A. Static Vs Dynamic URLs

The above mentioned URLs are static URLs which are the best for SEO purpose. They are human edited but Dynamic URLs are created by web servers and they get generated at the run time.

Static URL: http://www.example.com/url-optimization – SEO Friendly

Dynamic URL: http://www.example.com/abc.php?id=3&k=443 – Not SEO Friendly

Dynamic URLs are not SEO friendly thus they should be rewritten in order to make them SEO and human friendly.

Thus, always create Static URLs which are human readable and SEO friendly.

B. Hyphen Vs underscore

I have mentioned that avoid using hyphens in domain name but when you have to write permalinks i.e. www.example.com/page-name then you should use hyphens to separate words rather than using underscore.

www.example.com/buy-nokia-asha is good

www.example.com/buynokiaasha is not good as it doesn’t look readable.

www.example.com/buy_nokia_asha is not recommended

Why Hyphens not underscores?

This is because Google considers hyphens to be word separators but have not yet programmed their search bots to consider underscores as word separators. (Source: Woorank blog).

Thus, always use hyphens whenever it is indeed required for readability purpose but don’t overdo it.

Conclusion

This is what I have to share about URL optimization so that you can get the maximum knowledge about it because if you are lacking in this area, you are missing a lot in your site’s SEO.

I hope I am clear with what I have said in this post. Still if you find anything which looks to be unclear, please do ask your questions via comments and give me opportunity to respond to your queries.

About the author

Atish Ranjan

Atish Ranjan is an established and independent voice dedicated to providing you with unique, well-researched and original information from the field of technology, SEO, social media, and blogging. He has in-depth knowledge of computers and tech as he pursued computer science.

114 Comments

Click here to post a comment

All the data shown above will be stored by Techtricksworld.com on https://www.techtricksworld.com. At any point of time, you can contact us and select the data you wish to anonymise or delete so it cannot be linked to your email address any longer. When your data is anonymised or deleted, you will receive an email confirmation. We also use cookies and/or similar technologies to analyse customer behaviour, administer the website, track users' movements, and to collect information about users. This is done in order to personalise and enhance your experience with us.

  • Hi Atish bro,
    This was epic, We can say a complete guide to optimising the best URL structure. The title itself made me think if I am doing it right.
    URL structure is very useful, atleast when we are considering both human and bots for the post.
    Getting a good domain is the most important part of branding. would say its worthy to spend some time with domain name generators in order to get the right idea about domains.

    Just heard that Google is launching.HOW . I wonder who will use this many types of domains.

    I have the static version of URL structure as you mentioned and I think its great in terms of SEO and user ex.

    • Swadhin,

      Thanks for coming and reading the post. Yes URL is one of important part of SEO and also making your URLs self explanatory is good for your readers as well.

      Yes, domain name generators are cool way to give you ideas to get your next domain. I am not aware about Google launching .how TLD. Thanks for the info.

      Keep coming to my blog.

  • Hi Atish bro,

    As always again very informative post on URL optimization.
    Choosing URL and Domain is one of the important factor one should consider while starting with blog.

    Btw can you tell, how one can resolve issue which is mention in first point?
    Thanks for sharing such useful information.

    >SK Lohar

    • Thanks for coming by Shiv.

      Generally this canonical setting is done in server setting so you can use it to fix so that whenever you request your blog link either by typing www or without it, it always returns what you have set in your server setting.

      Also, check Site address and wordpress address by going to setting >> General (if you are using wordpress) and assure that same URL is mentioned in both options.

      If you still face any issue, just notify your web host and they will fix the issue in no time.

      Glad you liked the post Shiv.

  • Hello Atish Sir !

    You have provided a very useful and detailed insight on URL optimization. URL optimization is very crucial SEO factor that search engines bots consider while ranking any post in SERPs. So it becomes quite necessary to optimize a search friendly URL including your primary keyword in the URL but at the same time if you do it smartly, you can also make it optimized for humans.

    Thanks for providing this detailed tutorial, specially permalink optimization. 🙂

    • Hi Rahul,

      Glad you read the post and shared your views over this topic. Yes URL optimization is indeed required not just for the sake of search engines but for humans also. Even, you yourself must not like longer URLs right?

      Short and simple URLs are great from every point of view.

      Keep visiting.

  • Hi Atish Bro,

    This is a great and well-explained URL optimization guide.

    I always focus on using short permalinks with the main keyword included.

    Short URLs look good and trustworthy both for readers and in search engines as well.

    Thanks for sharing this must-read post.

    ~ Ankit

    • Yes Ankit,

      Shorter URLs are the best for everything, for SEO, for readers and even you liked them too.

      I am glad you liked the post.

  • Hello Atish,

    Just I was contemplating with what you meant with respect to one sentences in your post; I was hit with this; ”Don’t get confused!”. So I had to take the sentence again! Hahaha! I got it later on.

    Thanks for sharing with us this insights.

  • Really awesome article . now i have resolved my blog address to www also in webmaster tools . Thanks for sharing.

  • sir it was clear to me but sir domain and url still i have a doubt about backlinks is it useful in blog commenting sites

    • Hello Muraly,

      While building links you should not focus only the home page rather you should build links for home and other internal pages as well.

    • Hello Sahariaremon,

      Glad you liked the post. Domain name is important part of an URL as that you can select it only once. but you cannot miss other elements.

  • Nice article.SEO considers how search engines work, what people search for, the
    actual search terms or keywords typed into search engines and which
    search engines are preferred by their targeted audience.
    Thanks for sharing.

  • I am a new on SEO related stuffs..however, your article is full of brilliant ideas and tips. I really like to read it.
    Thanks- Gede

  • Hi Atish,
    You have really made by an article which covers everything about URLs. Learned new things on SEO friendly URLs. Thanks for sharing this awesome post with us.

  • Hi Atish,

    You sure covered every thing about URL’s. I’m glad you did because I’ve been taking this for granted. I know the difference between dot com and stuff like that, but this gives me a whole new look at things.

    Not a techie by no means, but each time I visit you, I learn something new and valuable.

    This is especially great to know if someone is putting up a new site. So this post is a must share!

    Donna

    • Hello Donna,

      Always loved to get appreciation from you. I am very happy that whenever you come to my blog, you learn something new. What else can be a great thing for me? This made my day! 🙂

      Please keep visiting!

  • Atish,

    You’ve come with an interesting topic with basic stuff that every blogger should know.

    Most of them would get confused to optimize the url in a perfect manner and yes, the exact urls with good domain name would bring a lot of visitors to a blog.

    I still remember the day you chose the domain name for me and I’ve done my best till today to my blog. I love my blog very much and thus I do care for every blog post url.

    Short urls matter a lot in driving organic traffic and stop words should be avoided in the urls.

    You’ve nicely explained the difference between the hyphen and underscore, hope it would help many newbies to avoid using urls with underscore.

    I can see your maturity level of seo and blogging in the post, do write such kind of posts for us by sharing your experience. Have a great rest of the week.

    • Hello Nachikethas,

      There are so many SEO posts already on this blog. You can check out by visiting the SEO category. And yes, I will be coming up with more posts soon.

  • Hi Atish Bro,
    URL optimization is one of the most important factor of On page seo. The tips mentioned by you are really great to optimize the url structure.
    Thanks for sharing this pot 🙂

  • This post is going to be very helpful for newbies as well as experienced bloggers. Atish you have very nice explained many things related to url optimization. I have always seen that your blog posts links mostly contain less number of words. Definitely a lot to learn from you. I hope that you’ll soon write a post about explaining some unknown SEO strategies.

  • Hi Atish Ranjan

    This is an incredible and decently clarified URL streamlining aide.

    I generally concentrate on utilizing short permalinks with the primary decisive word included.

    Short URL s look great and dependable both for perusers and in Internet searchers also.

    Much obliged concerning imparting this must-read post.

  • I believe shorter URLs are quite effective when it comes to Search Engine Optimization. Not your URL should be effective but your domain name also. You have explained small small things regarding URL optimization very effectively. I will definitely try the hyphen thing instead of under score.

  • Very educative post. Great article. I have learned a lot from you. I actually love using only page-name url so as to make my url look readable, short and seo friendly. Thanks for the great article.

    • Yes, URLs should be readable. Good point Emma. you can take out of unnecessary words from it. Thanks for stopping by.

  • thanks for the article how to optimize your blog url , because it is very very important to our blog that looks pretty in search engines like google

  • Great guide on URL optimization, Atish!
    Really enjoyed the reading.
    Some very useful tips.

    I remember all the mistakes I made when I started blogging…
    (included a bad URL optimization).

    I wish I have read this post back then. 😉

    Thanks for sharing, Atish.

    • Hey Erik,

      I am glad that you liked the post. Everyone does mistakes in early days of blogging due to less awareness which is natural so don’t regret about that. Happy that you are doing great now.

      Keep visiting to my blog!

  • Hi Atish,
    Thanks for the in-depth post on URL-Optimization, there are very guides on how to optimize URLs of blogs and as for me there has always been a confusion on the permalink structure. And today all my doubts were cleared.

    Thank you. 🙂

  • Hi Atish,
    This is an important post that newbies and experts alike must consider. URL structure and optimization is often ignored but they readily contribute to the traffic and success of a site or blog.

    I guess newbies would understand what it takes and how it works to optimize urls for humans and search engines after going through this post. Its very helpful!

    I shared this comment in kingged.com where I read this post!

    • Thank you so much for your visit Sunday. It always required to have short, simple and clean URLs as they are good for both human and search engines!

  • Hi,
    This is an important post that newbies and experts alike must consider. URL structure and optimization is often ignored but they readily contribute to the traffic and success of a site or blog.

  • Hi Atish

    That’s a really useful post thanks.

    Some of it I already knew having learned the hard way – but that was plenty of information and advice that was new to me, so really appreciate it.

    Have a great weekend. Joy

    • Hey Joy,

      Thank you so much for showing your presence here. Yes, Sr. bloggers like you do know these stuff already but newbies can learn about URL optimization by reading this post.

  • Hi Atish!!

    Great post on URLs for better SEO man!

    I really enjoyed reading this and learned some new stuff!

    I didn’t know enough about the canonical issue, now I do!

    Thanks for sharing this knowledge here man!

    Keep up the great work!

    I wish you the best!

    Cheers! 😀

  • Hey mate, can you tell some quick advice to fix the site about www. and without http://www.?

    There’s preference to set in google webmaster whether we want our site using www or not, is it as simple like that or i need to go technical and configure something? Thanks for your reply.

    • Check in your wordpress blog in setting >> General.. that both the website addresses are same?

      It can be simple done by defining URLs in wp-config.php file

      define(‘WP_HOME’,’http://example.com’);
      define(‘WP_SITEURL’,’http://example.com’);

      Replace example.com with your site address.

      If still there is problem then simply email to your web hosting.

  • URL plays an important role in indexing of page so we must take care of structure of URL and use keyword in URL. Thanks for sharing

  • Hi Atish,

    Really awesome post bro, I just enjoyed whole article, permalink is most important term of seo and we must use it carefully, short permalink is very simple method to improve Search engine ranking.

    I always prefer to use short url for my blog post with targeted keywords, and glad to know more about url optimization.

    Thanks for such a awesome post,

    – Mahadev

  • Hi Atish,

    This is a wonderful guide on URL optimization. It is an essential part of SEO. This seems a detailed guide for newbies. They will understand the process of URL optimization very well after reading here.

    Thank you so much for this wonderful guide.

    Have a nice weekend ahead!

    • Thank you Nisha for reading my post and sharing your thought via comment. Keep coming to my blog.

  • I think we should use keywords in URLs which could help our blog to get optimized more rapidly. Is it true that On page SEO optimization also depends on length of URLs?

    • Alia,

      Keep the URL length short and simple. Yes using keywords in URL has its own benefit but do it naturally. It should not look spammy.

  • It is very beautiful post Atish. We all know that the URLs we use really matters a lot for Search Engines as well for the users also. It is logically good to have smart URL, Meaning: Using small and meaningful URLs.
    We must always try to categorize our post in such a manner that people can easily scroll our in a very pleasant manner. Really thanks for sharing such valuable suggestions Atish, waiting for your next post!

  • Hi Atish,

    I just missed the bus 🙂

    just today only i got the intimation via G+

    Wonderful and an excellent post on SEO, URL Optimization.
    In fact I am new in this area, but this tuto/guide is a surefire for me! 🙂
    I am bookmarking it for my further use.

    Thanks a lot for sharing this timely piece.

    Keep writing, I am not getting your newsletter

    i am subscribed again, hope i will not miss any future posts.

    • Hello Philip,

      Better late than never.

      Thanks for coming by and reading. Thanks for subscribing and I hope you are getting newsletters on time from this blog. isn’t it?

  • Hi Atish

    It’s a fact that your blog posts are so unique and interesting and I enjoys a lot while reading your posts because you explained your post very deeply in a very easy and clear language.

    Thanks for your support and Happy Blogging 😀

  • Atish Ranjan@ In-depth and comprehensive tutorial for optimizing URLs. Short URL structure with proper keywords added is way better than Long URL structure because Google indexes only first few words and ignores the rest.
    Am i right bro?

    • HI Satbir,

      Thank you so much for reading my post.

      Yes, URL length should be limited as well. It should not be too long.

  • Hello Atish Ranjan, I Got lot from this post, i am new in wordpress, but these tips are really Awesome for me. Specially canonical link is impressing, because www and non www were problem in my site.
    Lot of Thanks

  • This is a complet guide for URL structure and domain choosing. Url have a direct impact on search engines understanding of the sturcture of the website. And, also, humain needs to a well-stractured urls to know were are they if they are on the website and to click if they are on SERPs.
    THX for sharing.

  • Very informative and detailed post to optimize URLs. Each and every points are in detailed. I learned a lot of things from your post and permalinks are very important in optimization. Thanks for sharing.

  • I think there is nothing more to explain about the URL’s than this 🙂 Great research.! AWesome presentation. Permalinks plays a vital role in SEO. yup !

  • URL structure plays an important role in blogging arena.

    A perfect configured URL has many fold benefits. It tends to generate more traffic from SEO , easy to share and looks elegant.

  • Hi Atish,

    I just found your article and it was well worth the read. You really explained url structure completely. I hope to read more posts from you.

  • Atish sir, i am happy that once again i am here on your site and reading this lovely article here. Well, saying true i know all this thing you mentioned here but still i like the way you are sharing important information with us.
    Thanks for doing this job for us brother..

  • Hi Atish ,
    your URL Optimization article is really good and informative. URL Optimization is most most impotent for SEO. this article is really helpful for us. Thanks atis for this informative article .

  • Hi Atish bro,
    As always again very informative post on URL optimization.
    Choosing URL and Domain is one of the important factor one should consider while starting with blog.
    Btw can you tell, how one can resolve issue which is mention in first point?I always focus on using short permalinks with the main keyword included.
    Short URLs look good and trustworthy both for readers and in search engines as well.
    🙂

    • I have already gave the solution in the comments. Please check carefully Sneha. Thank you for stopping by.

  • Very nice tutorial to improve SEO post/page links, informative for wordpress bloggers, but if you write a post about how to optimize blogger permalinks would be great and i like your website very much…

  • This article is very good i use Yoast SEO for my wordpress blog but this had helped to understand what is the use of permalinks and how to optimize my blog..

  • Well really this is very good post and I learned very good things from here. Best part is that you have explained it from scratch. Thank you for sharing this post. I am going to use these techniques.

  • Thank You for this tutorial and well written post atish. Definitely URL optimization is important tool you can you have to do. Plays an important part in building the clean structure.

Pin It on Pinterest