WordPress.org

Ready to get started?Download WordPress

Forums

permalinks with dots (4 posts)

  1. scotjam
    Member
    Posted 5 years ago #

    Hi

    Say you have a post called 'what happened to bbc.co.uk', and you have wordpress set up for permalinks. The permalink becomes 'what-happened-to-bbccouk'. Notice its lost the 'dots' in 'bbc.co.uk'.

    Any ideas on how to prevent this? Or ways to get around this?

    thanks
    scotjam

  2. iridiax
    Member
    Posted 5 years ago #

    Periods have meaning in URLs (indicating domains, subdomains, file formats), so they should not be used in page or post permalinks or directory names. Removing periods is the correct permalink behavior and I would not try to change it.

  3. scotjam
    Member
    Posted 5 years ago #

    That's a shame, I was about to hack it :)

    But IMHO it would be nice to have functional consistency, e.g. if permalinks replace spaces with underscore, then it should do the same for dots, not just remove them.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    It is consistent, in a sense. It removes anything not in a-z, 0-9, space, underscore, or dash. Then it replaces all whitespace with dashes.

Topic Closed

This topic has been closed to new replies.

About this Topic