I have a custom taxonomy on my site for online stores which has many websites listed (as terms).
At the moment the term slugs are all 'sanitized' to only include hyphens so a url looks like - domain.com/stores/amazon-com
I'd like to leave the sanitization as is , but want these URLs to show up as the actual domains with extensions in the urls for the site (in archives urls, etc.) such as - domain.com/stores/amazon.com
I only want this to happen for the terms in the 'stores' taxonomy though, not for all URLs that contain a domain with an extension.
I would really like this to be done via a rewrite for the URLs or a custom function.
I want the rewrite to change this:
But NOT change this:
Can anybody assist with this?