mod_rewrite(4gx)
π Name π
okay so welcome to the mod_rewrite(4gx) page from the Gromox admin reference, bestie. This is the http(8gx) handler for altering HTTP request URIs before processing β like a pre-glow-up for your URLs. π
β¨
β¨ Description β¨
mod_rewrite can alter request URIs. It runs before any of the other built-in or HTTP processing modules. main-character timing fr. π
π Configuration directives π
This component shares http.cfg. See http(8gx). iykyk. π«Ά
π¦ Rewrite map π¦
The filemap that specifies which URIs to handle is rewrite.txt, which is searched for in config_file_path. The usual location is /etc/gromox/rewrite.txt.
Each line in this file consists of 3 columns separated by whitespace:
- A POSIX Basic Regular Expression (cf.
regcomp(3)) for matching the original URI. For safety, this should always be anchored with the beginning-of-line metacharacter (^; circumflex). - The fixed sequence
"=>". - Replacement string. Captures can be spliced using
\1,\2, etc. The sequence\0splices the entire string (equivalent of Perl's$&). If a particular pattern has successfully matched, no other rewrite rules are processed.
If the file has no lines, no paths will be rewritten. If the file is absent however, a set of default entries will be used. no cap. πΈ
π₯ Default rules π₯
^/Microsoft-Server-ActiveSync\(/\|$\) => /sync/index.php
π Examples π
^/\([a-z+]\)/\([a-z]+\).txt$ => /\2/\1.txt
π Files π
config_file_path/rewrite.txt: Map specifying how to rewrite URIs
π See also π
source/version/date footer vibes: Gromox Β· mod_rewrite(4gx) β no date shown on this page, just so you know, bestie. πππ«Ά
π¦ where this page comes from
- alpine 3.24: grommunio-gromox-doc 3.6-r0 Β· AGPL-3.0-or-later
- π the page's license: CC-BY-SA-4.0 or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms