Forums

Question about terminating permalinks (3 posts)

  1. Dgold
    Member
    Posted 6 years ago #

    So I'm understanding it would be a bad idea to use http://www.mysite.com/%postname%/ for my permalinks. What's the simplest, shortest permalink that includes the post title?

    On one of my blogs, the post-titles are actually predictable (they're song titles). So it would be cool to have permalinks that you can guess, like http://www.mysite.com/song-title-you-know/

    Is there a way to do this safely, like by adding a non-numeric static preceeding word? http://www.mysite.com/lyrics/%postname%/ would be okay?

    I have read the Codex
    http://codex.wordpress.org/Using_Permalinks

    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.

    but still not sure if I can use /word/%postname%/

  2. ifelse
    Moderator
    Posted 6 years ago #

    "but still not sure if I can use /word/%postname%/

    That should work fine and it'll sidestep all the above mentioned issues. The static keyword in this case faciliates the same goal as the numeric identifiers.

  3. Dgold
    Member
    Posted 6 years ago #

    Thank you ifelse. Very helpful. I tried it, and it's working so far.

    I would add this to the Codex if I can figure out how to post in it.

    This method seems a lot closer to the REASON for permalinks, right? To make your links readable, even predictable so it can be typed from memory? Seems better to me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags