title: .htaccess rule for html5 and http authorization
body: <p>I have the following .htaccess file. </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)       /index.php/#/$1
  
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>My intention is to support HTML5 mode for a AngularJS app that I am working on. This works fine and my URL redirections work as expected with the necessary changes in my AngularJS app.</p>
  
  <p>However, I also wish to add the rewrite rule below to the .htaccess so that HTTP_AUTHORIZATION variable can be accessed in my PHP scripts.</p>
  
  <pre><code>RewriteEngine On
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
  </code></pre>
  
  <p>How can I specify both these rules in the .htaccess file?
  Adding the second <code>HTTP_AUTHORIZATION</code> related line in the end of the <code>&lt;IfModule&gt;</code> section, breaks PHP from getting access to the Authorization headers from the PHP calls.</p>
  
  <p>I am new to .htaccess and any help is appreciated..</p>