Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Rewrite URLs to allow domain extensions WordPress

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 -

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 -

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:
to this:

But NOT change this:

Can anybody assist with this?

Answers (0)

No answers yet.