title: Links to files inside PHP/HTML code subject to .htaccess mod_rewrite too?
body: <p>Just wanted to make sure:</p>
  
  <p>When I write:</p>
  
  <pre><code>require('/path/to/file/file.php');
  </code></pre>
  
  <p>Is the file required with respect to Apache's mod_rewrite? (which seems unreasonable, since it should be there for user URL redirection)
  What I mean is, that if .htaccess sends all requests to "index.php", index.php would be required instead?</p>
  
  <p><strong>And</strong></p>
  
  <p>When inside HTML markup, should paths to files e.g. images, links, css be written with respect to .htaccess mod_rewrite?</p>
  
  <p>Say this is the public root: <code>http://example.com/</code>
  The image is located in <code>'/img/image.png'</code>
  <code>RewriteRule</code> sends all requests with anything after the url end trailing slash to <code>http://example.com/</code>
  Does this mean the image would not be found?</p>
  
  <p>I suppose this applies to JS/CSS files as well.</p>