Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Not much detail in your question, but let me try an angle that hasn't been taken yet (as far as I noticed). </p> <p>If you're asking why the <strong>.htaccess file works for this request</strong>:</p> <pre><code>http://myserver.com/mypage </code></pre> <p>Or even <strong>this request</strong>:</p> <pre><code>http://localhost/mypage </code></pre> <p>But <strong>not this request</strong>:</p> <pre><code>file://www/mypage </code></pre> <p>It's because the first two are actual HTTP requests, requiring the page to be 'served' by Apache. Apache (assuming a correct configuration for your situation) processes the .htaccess file while serving the request.</p> <p>That whole process is bypassed for the third 'request', because that's not a HTTP request, that's a <strong>local filesystem</strong> request. In that case the web browser is loading a file much like a word processor. No web server is ever contacted, so the .htaccess file is meaningless.</p> <p>If that's what you mean by <strong>local</strong>, then <strong>to my knowledge there's no way to get a browser to process the .htaccess file for a local request</strong>. </p> <p>But in the future, there's a world of difference between requesting a flie for a local server, and loading a file from a local system.</p> <p>Again, this is only my take on one way your question could be interpreted, if indeed you're referring to requesting the file from a local web serve - check the configuration as many have suggested. (<em>And check that you're running Apache too</em>.)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload