htaccess不在子域中工作,但在域中工作相同

I had htaccess which works for domain.com and not works for sub.domain.com

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

All suggestions appreciable.

Probably it should work for all domains and sub-domains. After creating the new sub-domain you should wait for 3-4 days until the sub-domain is live. After the waiting time it automatically works for me.