Support » Installing WordPress » Permalink settings and performance

  • I’ve read varying things on the internet regarding the best permalink structures and have a question.. The WordPress docs seem to indicate that using the /%postname%/ permalink structure is fine as of ver. 2.0. However, I’ve read advice from people written well after the release of version 2.0 indicating that on blogs with many posts the the /%postname%/ permalink structure is horribly inefficient (due to database querying I imagine). What’s the truth??
    I have a static front-page with the blog address at mysite/blog and would like to use “/blog/%postname%/” as my permalink structure but would be fine changing it if I’m going to set myself up for performance issues down the road. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text “page slug” as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best to start your permalink structure with a numeric field, such as the year or post ID.

    http://codex.wordpress.org/Using_Permalinks

    Thread Starter cswinton

    (@cswinton)

    I read that in the docs, but further down I read this:
    “Starting Permalinks with %postname% is strongly not recommended for performance reasons.. *** Note – this has been changed and is ok to do since ver. 2.0

    The reference to the version 2.0 change is what confused me.

    Any downside to starting my permalink with the “/blog/” portion – does the recommendation to start with a numeric field only apply to the choice of tags? That is, do I still take a performance hit by using “/blog/%year%/%postname%/” because it starts with “/blog/” and not a number?

    The situation hasn’t changed significantly since 2.0 as far as I was aware. The wp-testers discussion of permalink structure and its impact on site performance suggests that starting the custom structure with a numeric is still the best way to go.

    Any downside to starting my permalink with the “/blog/” portion

    As your site url is mysite/blog, there’s be no performance hit. It’s purely about the tags you use to construct the permalink section after the site url.

    So I was looking for info about permalinks and ran across this:
    http://yoast.com/articles/wordpress-seo/#permalinks

    which states NOT to use date base at beginning of permalink structure if you want decent SEO?

    So what to do?

    I guess I don’t understand fully what WP is doing,
    or what I should be setting my permalinks up as.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink settings and performance’ is closed to new replies.