title: Redirect script.js to script.php
body: <p>I have some javascript that is generated by PHP. Currently I am including the javeascript in the html using</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/script.php"&gt;
  </code></pre>
  
  <p>But I want to use</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/script.js"&gt;
  </code></pre>
  
  <p>Now script.js does not exist, but I want it to redirect to script.php without the user knowing.</p>
  
  <p>Can this be done with .htaccess?</p>