• Dgold

    (@dgold)


    So I’m understanding it would be a bad idea to use https://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 https://www.mysite.com/song-title-you-know/

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

    I have read the Codex
    https://codex.www.ads-software.com/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%/

Viewing 2 replies - 1 through 2 (of 2 total)
  • ifelse

    (@ifelse)

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

    Thread Starter Dgold

    (@dgold)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about terminating permalinks’ is closed to new replies.