View Full Version : .htaccess directives?

01-06-2004, 10:46 AM
Everywhere I go every single tutorial shows you stuff like
[nc] or [r,l] but not one single tutorials ever mentions what these are?

So, does anyone know of a website that explains what these are and how many of them there are?

thank you. :)

01-09-2004, 01:17 AM
NC = no case (case insensitive)
R = force redirect
L = last rule (same as LAST or BREAK)
F = forbidden (makes the URL forced forbidden, 403)
G = Gone (returns error code 410)
P = forces request as a proxy request
T = mime type
C = chain (chained with any following rule)
NS = no sub-request
QSA = query string append (should be obvious)
NO = no escape, prevents URI being escape of special characters
PT = passthrough
S = skip (skip the next rule)

Let's see..

Oh, right...

E = environment variable

01-09-2004, 04:13 AM
wow, thank you very much. I was beginning to think this sort of thing was not document anywhere on the net.

You couldn't possibly have spare time enough to offer a website for this sort of thing do you?
I was at the apache site, but couldn't find what I wanted..which is what you poasted above. :)

Thanks again, and if you can give me a website thanks for that also. If not you've already done me a great service. :)

01-09-2004, 05:54 AM
Old man Feyd here wrote a tutorial on htaccess


01-09-2004, 05:55 AM
I found this document helpful: <http://www.engelschall.com/pw/apache/rewriteguide/>

And of course the Apache documentation: <http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html>, <http://httpd.apache.org/docs/mod/mod_rewrite.html>, <http://www.apacheref.com/ref/mod_rewrite.html>

And maybe <http://www.modrewrite.com/> or <http://www.sitepoint.com/article/910/1>