• I use/integrate marketing plugins with WordPress and it gets triggered based on a matching URL. Its easy to create a regex or matching pattern when using a non-letter character like “-” or “_” or “|” or “.” and I want to know from the brain trust here if there is any danger in my using a period “.” in slugs and permalinks. Is there any potential issues, limitations, or snags I could run into by doing this?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • @asbell – I wouldn’t recommend using a . in a slug/permalink without taking into consideration all of the current use cases of the . in URL structures starting with the domain name extension (example.com) and ending with the “web page” being displayed (such as index.php, default.html, etc.)

    I would also be a bit leery about using the | symbol although that might be a bit more forgiving in modern browsers. Using - and _ are much better options if needed to provide better, or more readable, URL segments, etc.

    ~ Cais.

    Thread Starter asbell

    (@asbell)

    Thank you Ed. I am really speaking about using a period AFTER the domain, specifically in the path or parameters. Example.com/action.sell

    @asbell – I can see the appeal of using a period in your example although it is more commonly seen as a hyphen or underscore (which would be easier to write a regex statement for). If you are moving forward with using the period in this case I would love to see the code/regex you do write to handle its usage.

    ~ Cais.

    Thread Starter asbell

    (@asbell)

    Yes the appeal of using the “.” Is explicitly to differentiate it from a hyphen. The regex would be based off of any periods afterthe domain. I believe there’s already a common expression to match on domain

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use of period “.” in slugs and permalinks’ is closed to new replies.