Subdomain redirect to main domain
<p>I created subdomain But it's redirect to main domain. For Example : my domain name is mydomain.com and I created subdomain test.mydomain.com But issue is that When open subdomain url it's always redirect to mydomain.com. I want to stop this redirection. Here is .htaccess file text.</p>

<pre class="lang-bash prettyprint-override"><code>RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</code></pre>