Minimal custom permalink structure

All we need is an easy explanation of the problem, so here it is.

I’m aware that there are posts discussing this issue already (e.g. What is the best permalink structure for SEO?) but I have a specific set of requirements according to my wordpress site structure, namely:

  1. 6 pages
  2. A small number of posts (~ 3 at launch, maybe 1 new one per month)

I’d like to include the post name in the URL (for both SEO and easier stats analysis), but I’ve seen references to ‘problems’ arising from using just the post name.

  • Would this be the case, even on such a small site?
  • Would /%post_id%/%$postname%/ be a ‘better’ alternative? I notice that, even with this configuration, the Pages don’t use the post_id in their URL.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

Hi *@Bobby Jack:*

You’ll have absolutely zero problem given your number of pages and posts. If you were looking at 5000, 10k, 25k pages or more, then start to worry.

And the real problem is with categories as the URL base in the current implementation of WordPress’ URL routing (which I hope to see changed in v3.2 or v3.3):

In Summary, nothing to worry about.

Method 2

Keep in mind that the permalink settings in the WP admin only apply to posts, and not to pages. With pages, you can create your own hierarchy by creating new pages as child pages. By choosing what “slugs” you use for each page, you define the hierarchy. Posts are teated separately.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply