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?
- I’ve mistakenly installed another wordpress in my main domain instead of subdomain
- Migrating WordPress site from subdomain to subdirectory
- How to migrate Subdomains to new hosting?
- Host the wp-admin on another domain?
- Multisite on Windows with wildcard subdomains
- How to share cookies and sessions between domain and subdomain?
- Are nested subdomains possible with a subdomain multisite?
- Can a multisite’s blogs be accessible from two different sub-domains?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- How to use alias domain for multisite installation?
- Blog posts on one subdomain, pages on another
- SSL wildcard issue for wp multisite subdomains
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Wildcard subdomain for the same site
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- Create multiple subdomains for multi-site from a database
- Two instances of WordPress with different URLs and themes
- WordPress Multisite. Can domain be used instead of subdomain?
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- Subdomains to pages
- Htaccess for Wordpess set on single subdomain
- How to set up WordPress Multisite on multiple domains without plugin?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- WordPress | Sub-domain switching
- Site redirects to wrong url when saving settings
- Set subdomains live in a next step
- Transfer Subdomain site to Multisite setup
- Multisite installation combining subdomains and subdirectories
- How does wordpress multisite manage subdomains?
- Logout via Subdomain, non-wordpress page on a different server?
- Create subdomains for tags and categories
- Why can’t a WordPress network (multisite) in it’s own folder use subdomains?
- Multisite wordpress and subdomain URL collisions
- Redirecting specific category to subdomain
- Sub domain redirection to taxonomy
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- Subdomain multisite gives 404 on sub sites
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- How to maintain wordpress site blogs in production and staging?
- Multiple Single Installs of WordPress with a central user base
- Cookie settings for session across WPML subdomains using custom AJAX login
- Linking to Files in Root Directory Outside of WP Installation
- Fix 403 error on WordPress multisite network using subdomains
- Testing Multisites with vagrant or Can I use multisite with only an IP address (without domain name)
- Sub-domain or 2nd, temporary different domain?
- Changing Multisite URL after the subsite has been in use
- How to store media files in subdomain
- WordPress subdomain wp-admin redirects to main domain
- How do I use different domain for subdomains in WP Multisite?
- Non-wordpress subdomains on Multisite Installation
- How to add a custom redirect rule for subdomains?
- How can I link users across multiple subdomains?
- How would you detect if WordPress is installed in a subdirectory (not root)?