Quick summary: “What is the best permalink structure for my WordPress site?” We get that question a lot. Via email, Facebook, Slack and face to face conversations. Yes, we still have those although we try to have everything in P2’s. The usual answer always starts with “It depends“. After that cautious phrase, we begin explaining that it’s […]
“What is the best permalink structure for my WordPress site?”
We get that question a lot. Via email, Facebook, Slack and face to face conversations. Yes, we still have those although we try to have everything in P2’s.
The usual answer always starts with “It depends“. After that cautious phrase, we begin explaining that it’s not a one size fits all system. So, I’ll let you in my personal conversation with a client, some weeks ago.
“Yes, yes, but I want to know about the URL structure you use.“, he told me.
“Ok. I use the simplest permalink possible. I have the domain name and post name. That’s all“.
“I see. And what about the category? Should I have the category? It’s important for Google?“
“I don’t use it on most of the projects, but if it’s valuable to your readers, you must use it. However, I think you have to set your priorities right. Yes, Google and other search engines are important but more important – I think – are your users, the people that visit your site. Some of those visitors look at your URL on search results. So, try to make an educated guess about your user’s behavior. If you think they value the categories in the permalink, use it. However, there’s something more about categories.“
“Yeah? Tell me more?“
“First, I wouldn’t use categories on the permalink if your domain name is long. Only if it’s short. At last, if you use it, take care that you only select one category per post.“
Keyword in the title and URL
“I read somewhere that we must use the keyword in the post name?“
“Yes, that is recommended as a best practice. For users and search engines. But don’t go crazy with that kind of optimization. Don’t worry about if your focus keyword is the first word on your permalink, after the domain name. If your focus keyword is in the first words, don’t worry, you’ll be okay“.
“How many words should I use?“
“Use as few words as necessary. If you can make your title with three, four or five words long, excellent. If you have more words in the title, try to use a short URL. Remove some of the nonrelevant words and keep only the important ones. To finish, prefer dashes over underscores to separate the words.“
Forget about the date, unless…
“Oh, and about the date?“
“You see, it depends, again. You can use it if:
Your site it’s time sensitive; The date is important for your audience.
If it is, well, you might have it in the URL. Generally speaking, using date doesn’t have many benefits. It’s only a way to ‘date’ your permalink structure.“
“Imagine that I make some mistakes, can I change the permalink structure?“
“My favorite answer in this conversation: it depends. Depends on how long do you have your site and the number of pages and posts. If you have a long history, it’s better to do not make drastic decisions. You think that you’ve made some errors? Change the URL structure could make it worse. If you’re starting then switching won’t cause you troubles.“
“Ok, thanks for…“
“Unless you’re still using the default WordPress permalink, the one with the question mark, the ‘p’ letter and equal (?p=). Is this case it’s wiser to change it in any circumstances.“
“Oh, yes, that’s important.“
“Permalinks are important, of course, and you’ll do a great job if you follow two basic rules: common sense and putting your users first.“