0

Is something to the effect of this possible without nesting in a htaccess file?

<ifDefine !development | !staging>
    ....

Ideally I would use an environment variable but this is not possible in this case.

matthewjewell
  • 140
  • 1
  • 9
  • It depends what you want to do inside `if` condition. – anubhava Apr 22 '14 at 13:57
  • rewritecond/rewriterule – matthewjewell Apr 22 '14 at 17:00
  • `Ideally I would use an environment variable`: Where you set this env variable? – anubhava Apr 22 '14 at 17:04
  • env vars are set in the virtual host config for dev/production servers, which i understand are not passed to htaccess before it runs. I could set it inside of htaccess on the condition of the URL or similar, but i'd prefer it to do it as above so this rule can be independent of whatever that condition would be. Happy to nest the above, but was just wondering if it could be done inline. – matthewjewell Apr 22 '14 at 17:48
  • Many things are possible but you need to provide some intended rules here in order to build an answer. – anubhava Apr 22 '14 at 17:51

0 Answers0