WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks with %postname% as the only Element (2 posts)

  1. ebeard
    Member
    Posted 7 years ago #

    I found the comment below in the docs. I have the latest WordPress version. Is it really bad to use just the
    %postname% element, as in "www.mysite.com/my-post-title"? I much prefer that style and set mine up that way, but I don't want to cause problems in the future. ??

    -----------------------------------
    Note on using only %postname%
    If you use postname as the only element in your permalinks to create a structure such as myblog.com/post-title, the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the wp-admin folder. It's best to include some numeric data (e.g. the post ID or date) in the permalink to prevent this from happening. Additionally, WordPress v1.2.x requires the use of a date structure in order for some features, such as the calendar, to function properly. /%year%/%monthnum%/%day%/%postname%/ is always a good start.

  2. Chris_K
    Member
    Posted 7 years ago #

    You'd definitely have to be very careful to never have a post with the same "slug" as a Page. That would probably be disasterous as they'd have the same permalink.

    Not to mention running the risk of two posts sharing the same title years apart.... I'm only at 500 posts and I can't imagine trying to remember if I've used a title before! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic