How to redirect specific URL to Subdomain
I am trying to write a .htaccess
rule to redirect the URL to a subdomain.
Example: example.com/pagecategory/page-single
→ pagecategory.example.com/page-single
I've added wildcard subdomain on my hosting.
Can anyone help me write the .htaccess
code?
Topic subdomains apache mod-rewrite url-rewriting Wordpress
Category Web