Do you avoid using specific characters in friendly URL?

Last updated by Tiago Araújo [SSW] 10 months ago.See history

When adding a friendly URL, please avoid using specific characters like + : # & , ) ( ! \ } { @ / = $ (and so on) due to these reasons:

  1. When adding a friendly URL, we meant to make it friendly and easy for the user to read and remember, and these characters add complexity
  2. Some characters are unsafe characters, they will be encoded, which end up making the URL really messy and ugly. Example: double quote (“) will be encoded as %22.


Some characters are reserved characters, which may not be supported by some features, based on our experience, “+" is not supported in “canonical" to redirect from http to https.

Figure: Bad example - This URL will throw a 404 error rather than redirecting to https://

Figure: Good example - Redirect works fine if the URL doesn't include “+"

We open source. Powered by GitHub