• Hi all, the codex states for “using only a postname” as a permalink the following:

    Using only %postname%
    If you use postname as the only element in your permalinks to create a structure such as example.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 [is this true in WordPress 2.0+ versions?]. 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.

    Before I start this, although I might start testing in a sandbox. Can someone tell me if they know the answer to the question embedded within this body of text by the original author? i.e. is this information still accurate for current versions?

    I use wordpress across many sites in many different variants. Some of which see me use wordpress solely as a CMS with no “blogging” use.. just static pages. And, for those few sites, I’d love to pretty up the URLs.
    Some sites have a combination of static pages and posts. Those two I may be interested in prettying up.

    Look forward to any feedback.

    Cheese!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve tried it when I was running 2.1.3 or so and the whole site broke. Fortunately I was smart enough to just backspace to the settings to fix things, but when you just log out, you might have a very hard time getting things back. I have used /%post-id%/%postname% since and I don’t plan to try only %postname% anymore!

    barcelona2winhotmailcom

    (@barcelona2winhotmailcom)

    I have a url that uses wordpress version 2.8.2 which I have set up static pages for. I don’t want to use it as a blog; just a stand alone website with a few pages.

    I want to set up the permlinks so that the URL shows the postname only on each page e.g as https://<domain name>/%postname%/
    But this doesn’t work.

    I don’t want to show the year, month ,day or category; just the posyname.

    Does anybody know how I can set things up like this?

    Ah, what you want is easy. You can use /%post-id%/%postname% since for pages the id isn’t shown anyway.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks – Using only Postname’ is closed to new replies.