I install WP in main domain example.com and there is the .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
How I can redirect the user who requests {subdomain}.example.com to app.example.com/{subdomain} but if they just want example.com to give them index.php file like it is now?
Also how to keep {subdomain}.example.com in the browser instead of showing app.example.com/{subdomain} ?
UPDATE: my wildcard subdomains are already redirected to the main domain ...