php – How to make Subdomain work for product_tag?

Question

I’m trying to find a way to make subdomains work for some of my product_tags. For example nike.myshop.com will display the content of myshop.com/product_tag/nike.
I googled for a long time, but most of the solutions and plugins only work for wordpress post_tag, like wp subdomain, wp super domain. Can anyone provide a solution for woocommerce?

Environment

1 woocommerce

2 *.mydoamin.com DNS is set

3 Access to .htaccess

4 Access to functions.php

0
Felmon 4 months 2022-04-19T04:56:09-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse