Skip to content

Instantly share code, notes, and snippets.

@catwhocode
Created July 9, 2024 02:10
Show Gist options
  • Save catwhocode/379d717f4deb9346f8f87877ed077d99 to your computer and use it in GitHub Desktop.
Save catwhocode/379d717f4deb9346f8f87877ed077d99 to your computer and use it in GitHub Desktop.
.htaccess Flag List
.htaccess flag list
C Chained with next rule
CO Cookie (set specified cookie
E var:value (set Environment variable var to value)
F Forbidden - sends a 403 header to the user
G Gone - no longer exists
H Handler (set handler)
L Last - stop processing rules
N Next - continue processing rules
NC case insensitive
NE Not Escape (do not escape special URL characters in output)
NS Not SubRequest (ignore this rule if the request is a subrequest)
P Proxy - i.e., apache should grab the remote content specified in the substitution section and return it
PT Pass Through - use when processing URLs with additional handlers, e.g., mod_alias
R Temporary redirect to new URL
R=301 Permanent redirect to new URL
QSA Append query string from request to substituted URL
S=x Skip next x rules
T mime-type (force specified mime type)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment