title: 404 error when templateUrl is a php file in Ionic
body: <p>I am building a mobile application for my woocommerce website using ionic framework. I included home page template with Url stateProvider like this:</p>
  
  <pre><code>.state('app.home', {
      url: '/home',
      views: {
          'menuContent': {
              templateUrl: 'http://example.com/wp-content/themes/app/templates/home.php',
          }
      }
  })
  </code></pre>
  
  <p>home.php file looks like this:</p>
  
  <pre><code>&lt;?php
  require_once('../../../../wp-blog-header.php');
  require_once('../../../plugins/woocommerce/woocommerce.php');
  require_once('../../../plugins/yith-woocommerce-wishlist/init.php');
  echo 'Test Content';
  // Image slider, product list etc future work.
  </code></pre>
  
  <p>But it gives 404 error <a href="http://pasteboard.co/34NEqSy.jpg" rel="nofollow">(Link)</a>. Same url works if entered directly in browser <a href="http://pasteboard.co/36jwZzG.jpg" rel="nofollow">(Link)</a>.</p>
  
  <p>I tried using html template and it works correctly. But that requires woocommerce api and custom api for other plugins. (It is not required if php file works directly)</p>
  
  <p>How can we include php file directly as template?</p>