WordPress supports only one theme on site. Actions like shown will cause a adverse effects.
Instead, you should use WordPress Multisite, which allows to use different themes on subdomains. This is the way recommended by the WordPress team.
There is solution for WooCommerce on WordPress Multisite: WooCommerce Multistore plugin: It is quite expensive ($200), but struggling with unsupported features in WordPress can cost much more.
Related Posts:
- Hosting a WordPress blog as a sub folder from a S3 website
- Share WordPress Login Cookies Between Two Subdomain Installs
- Load template for specific subdomain
- Serve HTTPS requests from subdomain
- Using subdomain m.website.com for mobile theme?
- How can i run the same WordPress install on multiple subdomains?
- Classic Conundrum: How do I map a Sub-Domain in WordPress? [closed]
- General Settings for WordPress Subdomain
- Moving a blog from a subdomain to a folder
- How to retrieve TLD domain for the current website?
- How to serve assets files (js, css, images) on a subdomain
- Moving WP installation form subdomain
- Will WordPress installed on a whole domain interfere with other files in a subdomain or subfolder?
- Network of subdomains [closed]
- Moving website from expired domain to an active subdomain
- Change the subdomain?
- Two domain for one site not working in mobile
- WordPress subdomain mapping/”archiving” [duplicate]
- WordPress CDN Subdomain URL not accessible to the public
- How do I (re)design my corporate website in WordPress without downtime?
- change wordpress upload url to subdomain on xampp local
- Can I have a WordPress site stored on a subdomain of another website owned by me?
- Subdomains permalinks issues
- Relative Root Url For Sub domain name
- 2 WordPress install with same database
- How to make each category a subsite?
- How to Set up a Wildcard Subdomain for all WordPress Posts?
- WordPress cloned but frontend still displays http://old_wordpress_site
- How to load subdirectory mobile theme and redirect mobile devices to subfolder?
- Subdirectory mapping for a WordPress website
- WordPress deleting subdomain from the URL
- How can I move the subdomain to the root domain?
- Can I edit domain settings if I didn’t create the site?
- Issue while installing wordpress in subdirectory due to SSL [closed]
- Add subdomain for Vue.js application
- Question of the subdomain
- Can I use WP’s built in domain mapping with WP installed on a sub-domain?
- Create a new hyperlink to wordpress blog
- Changing blog domain name
- Single WordPress Installation with Sub domains
- Why is my subdomain returning a 403 status?
- Serve HTTPS requests from subdomain
- WordPress site with subdomain without multisite installation
- I have a question about the name of my blog [closed]
- Hide sub domain created for local CDN
- Change author URL from /author/xyz to a subdomain xyz.domain.com for each new registered users
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- Multisite on Windows with wildcard subdomains
- Are nested subdomains possible with a subdomain multisite?
- How to use alias domain for multisite installation?
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- WordPress | Sub-domain switching
- How does wordpress multisite manage subdomains?
- Create subdomains for tags and categories
- Multisite wordpress and subdomain URL collisions
- Redirecting specific category to subdomain
- Sub domain redirection to taxonomy
- Linking to Files in Root Directory Outside of WP Installation
- Using same database for main and subdomain
- Second wordpress installation on subdirectory
- Wordrpess Subdomains (Multi-Site) without Wildcard
- WP MU – Accessing ‘Domain-Mapped’ WP-Admin with a subdomain
- Icon font not working on subdomains of multisite
- How to redirect a page to subdomain?
- How to run a subdirectory multisite install under a subdomain
- Pulling images from a subdomain
- Subdomain redirects to subdirectory [closed]
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Point static content like css and js to cookieless subdomain
- Create subdomain out of sight the wp multisite
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- Multisite: Can’t Post or Create Categories
- Rewriting a subdomain page on one WordPress installation to a parent domain on another
- Redefine cookie domain for subdomains
- Installed WordPress Location
- MU/Subdomains + Domain Mapping + SSL?
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- When creating a multisite, the sub-folders option is not available
- Https and Http Login Issue on WordPress Multisite
- Access sub-domain when root public_html is protected with .htaccess password
- Should i install multiple wordpress for one site?
- Automatically generator a WordPress installation on my subdomain
- Using Same User Database on Subdomain
- wordpress sub-directory sites on a sub-domain?
- Getting post and attached image from subdomain
- Can I run both a wordpress blog plus another service(ex. a Shopify store) on the same domain?
- Shop in Subdomain feeding main domain order in admin area
- Problems with setting up a subdomain to serve images and scripts
- Multisite network subdomains doesn’t work
- Multisite has SSL certificate, but media library is still http://
- new WPMS site not working / Q setting up new site/subdomain
- Specific plugin script not working on subdomain
- WordPress MU with subdomain
- Configuring Multisite with subdomains
- Redirect loop when forwarding to mobile site
- How do I remove ‘www.’ from all internal links in self-hosted multisite?
- Not being allowed to use some terms in Add New Site in WordPress
- Multisite subdomain microsite on secondary domain