Long post and page URLs can be annoying. Take an example: https://gauravtiwari.org/2011/02/06/derivative-of-x-squared-is-2x-or-x-where-is-the-fallacy/(one of the most popular posts from my blog). Will you like to write these (about) hundred characters? Or will prefer URL shorteners, like bit.ly or wp.me, instead? As third option, will you just copy and paste the URLs to anywhere you want to share? Second idea is fine but third is awesome. But using shorteners will never give you the same satisfaction as first and third will do, because blog URL https://gauravtiwari.org is not visible, and also looks odd to see characters (like1xYzKl3n). What then? Copy-paste method appears the best method among all three. This post is about the fourth strategy of sharing URLs, you may want to try. The fourth strategy involves WordPress URL shortening techniques done without any external scripts or plugins.

WordPress URL Shortening: Explained

But before we proceed, let’s know what actually a ‘slug’ is?

[wc_box color=”primary” text_align=”left”]

A slug is a few words that describe a post or a page. Slugs are usually a URL friendly version of the post title (which has been automatically generated by WordPress), but a slug can be anything you like. Slugs are meant to be used with permalinks as they help describe what the content at the URL is. The post slug is the part of the URL after the date in a post’s URL. When the default post slug is created, all letters will be converted to lowercase, spaces will be exchanged with dashes, and any special characters will be removed. You can modify the post slug by clicking the Edit button next to it in visual editor. When you’re finished editing, click Save and then Update Post/Page.


»via WordPress Codex

How to shorten a WordPress post or page slug with a more efficient way?

Here are some interesting ways to define a personalized, very short and share-friendly version of URL for your post.

Here are some points, which follow and guide you on shortening URLs:

  1. Date stamps are not important when writing shortened-urls. You may totally ignore them from the shortened URL or just leave them as they are.
  2. Any URL of the type https://gauravtiwari.org/d redirects to a post/page which slug starts with ‘d’. If there are two posts having slugs starting with the same letter of the alphabet (here d), then it will, in alphabetical order, redirect to that post which first word (if same then second word) comes first in English Dictionary. For example https://gauravtiwari.org/dwill redirect to https://gauravtiwari.org/d-alembert/ rather than tohttps://gauravtiwari.org/derivative/
  3. If two/more posts have the same slugs and you are using an identical shortener that it might go to any of them, then that will chose to go to the post which was published earlier.

Some slugs are not allowed in posts or pages on WordPress and WordPress.com due to security reasons.

  • Periods(.)
  • /activate/
  • /category/, /subject/ (or any category base slug, which is chosen from Setting –>> Permalinks).
  • /comments/
  • /feed/
  • /i/
  • /next/
  • /signup/
  • /tag/, /topic/   (or any tag base slug, which is chosen from Setting –>> Permalinks)
  • /wp-admin/
  • /wp-content/

PS: You cannot shorten your post URLs /page URLs (this way) until they are published.

This trick works for both, the free WordPress.com and self-hosted WordPress.org blogs.


Feel free to ask questions, send feedback and even point out mistakes. Great conversations start with just a single word. How to write better comments?
    1. Hi Robyn! Thanks for liking the post. Eliminating date is a good idea for all WordPress.com blogs but looks awesome to those who have own top-level-domain like you and TT. teamoyeniyi.com/something for any post!!— Looks great in my view.

  1. Thanks for detailing this so clearly, nice work! I have often wondered what a slug was. I remember that thing about the dates, and that you are supposed to take them out if you link to old posts in a new post as well, but I don’t always remember to do it. I am very grateful to you 🙂

  2. Thats a great tip Gaurav. I found a url shortining service that you and your readers might find useful as well for link shortning at http://www.dot.tk where you can setup an unlimited amount of url’s, associate an email address with them, setup email only addresses and much much more.

    If you have a blogpost you really want to highlight, promote and make easy to remember you might give them a look as well, I’ve been using there service for a long time now and have found it to be a reliable and useful service.


  3. Interesting post. Me, a beginner, I don’t really understand “slugs.” By eliminating the date on wp.com links, I can see that it makes it easier to tell others how to find a specific post. So making the link even shorter and simpler makes it easier to tell someone how to find one of your posts?

    I write about Japanese cooking and most of my friends can’t even remember the link to my blog unless I email it to them. Sorry if I’m being dense here. (I know I am…)

  4. Your last two sentences seem to imply that WordPress can create two permalinks for one post/page. How does this work, as I only see one permalink listed under each post/page in the text editor.

    1. There can not be two permalinks for a single post/page. In this post, we’re trying to reduce the characters in the permalinks, so that they look shorter and better. You’ll find the all shortened URL redirect to a single permalink.

  5. Gaurav,

    You suggest removing the date from the permalink. However, when I click “Edit” to the right of the permanlink above the text editor, it seems to keep the date protected with the domain name and only allow changing of the slug. Please advise.

  6. Notwithstanding my two questions above, I love this post! Thank you for writing it. This will be very helpful, particuarly because it reduces overreliance on the Pretty Link plugin and speeds up personal workflow.

  7. Such a detailed post…Thanks Gaurav…
    I will have to try these tweaks and see myself, I never knew that’s how slugs on WordPress work. Well it be true to any other site too, out just WordPress based.
    Very good article, keep it up.


    1. Thanks for reading Anurag! Very pleased to know that you liked this post. It was written years back, but still works smoothly with any WordPress.com & Self-hosted blog. All you need to have jquery and admin-ajax.php enabled (which almost every WP blog does).
      Have a great time ahead.

  8. I seriously love your blog.. Great colors & theme. Did you create
    this amazing site yourself? Please reply back as I’m wanting to
    create my very own website and would love to find out where you got this from or just
    what the theme is named. Thanks!

  9. Nicely written. Still, the posts are too quick for novices. May you please prolong
    them a little from next time? Thanks for the post.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like

Why do you need a website for your business?

Not a long while ago, I found a lead on a good client that could use my web-development skills for their business. They were in catering business which was growing rapidly. I learned from a friend that they were planning for an expansion to be an inter-city business. I took it as a chance to earn a new client. I prepared…

Best Hosting services for Beginners to Start Website

Hosting is quite critical for any website and blog. If you’re active on social media, you will find hundreds of posts asking about the best hosting as per their need. But why this hosting is that important? If you are an experienced blogger or who own websites, you can easily count many. But as we are focusing on the beginners…

From Prototype to Production: 4 Things You Need to Know

From concept to marketable prototype to launch version to production to public release and continuing support, product development involves numerous stages, with each step of the process presenting its own set of challenges. Many startups have failed at one stage or another, most commonly due to a lack of knowledge or preparation.  The best that any entrepreneur can do is…

My experience with WordPress Page Builders

For a long time I have disliked Page building tools, specially the Visual Composer. Visual Composer, now called WPBakery Page Builder was one of the earliest ones of the kind and came with almost every second premium theme on themeforest. So no matter what you bought, you’d be getting Visual Composer prebuilt. It had a little or no competition in…

Top 6 Features Of A Multifunctional Medication Reminder App

As per a survey conducted by the Statista, medication reminder applications are one of the 10 popular mHealth apps used by the adult residents of US. Most of the people who participated in the survey said that they have used some kind of a pill reminder at least once in their lives. The medication reminder applications are beneficial for medical…

Social Media Marketing Practices every blogger should try!

We all know how important Social Media is to blogging. Let alone blogging, Social Media is now said to be even the core of modern corporate world. From a one-person startup to multi-billion dollar companies, everyone knows the importance of how essential social media has become to business growth. Big companies are putting a lot to their social media projects…