title: RewriteEngine On in <IfModule mod_rewrite.c> every time?
body: <p>I'm wondering whether I can use RewriteEngine On only once within my htaccess when it is embed in IfModule mod_rewrite.c or do I have to use it every time <em>because</em> it is embeded?</p>
  
  <p>See example below. Thanks</p>
  
  <pre><code>&lt;ifModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{QUERY_STRING} /?author   [NC]
  RewriteRule .* - [F]
  &lt;/ifModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{QUERY_STRING} g=  [NC]
  RewriteRule ^(.*)$ - [F,L]
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  </code></pre>