How can I do it right? If subdomain is not "dev" follow these instructions
RewriteEngine On
Options +MultiViews
Options +FollowSymlinks
# -----------------%<-----------------
# If subdomain is not "dev"
RewriteCond %{HTTP_HOST} !^dev\.*
# follow these instructions
AddHandler fcgid-script .php
MultiviewsMatch Handlers Filters
# -----------------%<-----------------
That is nothing you should configure in a distributed configuration file (".htaccess"), that is not what those files are for. Instead this should be implemented in a separate virtual host where you don't need a condition at all.
A
RewriteCondis part of the rewriting module, you cannot somehow use it in combination with directives of other modules.You can try something like that, but as said I would advise against that:
This is where you can find the documentation: https://httpd.apache.org/docs/2.4/expr.html#examples