The goal of stemming is to reduce the variability of text in an attempt to equate on
, if not actual bytes. Two URLs may be functionally equivalent, even if the actual characters that make them up are different.
If input, both URLs will be stemmed with the same settings and compared for equality.
The settings below are optional and will affect the stemming of the provided URL. The default settings are optimized for equating two URLs for server-based resource identification, not necessarily for browser-based user experience.
Remove all subdomains
The domain of the URL will be replaced by this value (ex: "myofficialdomain.com"). Subdomain removal works with or without forcing a domain.
The protocol of the URL will be replaced by this value (ex: "https")
Trailing slashes will be added, removed, or ignored.
Only querystring arguments in this comma-delimited list will remain in the URL (ex: "id")
Querystring arguments in this comma-delimited list will be removed from the URL (ex: "utm_source")
Setting to -1 will always remove the port. Setting to 0 (the default) will leave the port unchanged. Setting any positive value will force the port to that value.
Force URL to lowercase
Reorder querystring args alphabetically