WordPress.org

Support

Support » How-To and Troubleshooting » Permalinks with %postname% as the only Element

Permalinks with %postname% as the only Element

  • 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.

Viewing 1 replies (of 1 total)
  • 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! 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks with %postname% as the only Element’ is closed to new replies.