• Just curious—can WordPress serve up posts with a simple domain/slug URL?

    http://my-site.com/entry-title-here/

    Go me asking questions before I actually try anything. Just wondering if anyone’s tried hacking around with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, by using the permalink structure:

    /%postname%/

    However, it’s not recommended since it can, and will, cause issues with your links. First, you’ll run into problems if two or more posts use the same title. Second, at least in the current release of WordPress, archives and categories will go buggy.

    Finally, because of the rewrite rules that have to be set up through mod_rewrite and your .htaccess file, you may be unable to call up the index of any real directories within or below your blog’s without specifying it directly. In other words:

    http://my-site/resume/index.html

    would work, but

    http://my-site/resume/

    would get bumped to your blog, which would report it as non-existent unless you have a post with the title “resume”.

    With that said, see this post on my blog:

    http://guff.szub.net/behind-the-scenes-at-guff

    Some of us want to have our cake and eat it too. Even if it isn’t as tasty as we’d like it to be. ;)

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Thread Starter sidesh0w

    (@sidesh0w)

    Thanks for the links and explanation, all. Kafkaesqui, you got right to the root of my question: I was wondering if WP was intelligent enough to create unique slugs (e.g., if “my-post” already existed, insert a new post as “my-post-2”), or if the onus was on the weblog author.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Simpler URL slugs?’ is closed to new replies.