Can you really write some conditional "if" claims in htaccess in line with the server title/path?

I understand I'm able to use <IfModule> but that does not solve the issue once the development and production server are the same.


You can look at the need for SERVER_Title or DOCUMENT_ROOT:

RewriteCond %{SERVER_NAME} =foo
RewriteRule …
RewriteCond %{DOCUMENT_ROOT} =/path/to/document/root/
RewriteRule …