LAMP/LEMP SQLite, PostgreSQL 등을 학습한다.

The configuration files for Apache2 are located in /etc/apache2 of a Linux filesystem. It can be thought of as the operating system-wide configuration file

An .htacess is a per-directory configuration file

These lines of code are lines that i removed from my codebase's .htacess

`# Allow encoded slashes (%2F) to pass through without being decoded

This allows literal slashes in page titles (not subpage separators)

RewriteCond %{REQUEST_URI} ^(.)%2fF$ RewriteRule . - [NS,E=ENCODED_SLASH:1]`

What do they do?

They set an environment variable called ENCODED_SLASH, whenever the REQUEST_URI contains %2f or %2F.

The comment is misleading as well.

`# Short URL for wiki pages

B flag: escape backreferences to preserve %XX sequences

UnsafeAllow3F: allow %3F (encoded ?) in URLs for literal question marks

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [B,L,QSA,UnsafeAllow3F]`

Let's say one wants to allow any %XX encoded character to pass through undecoded.

There is no single "allow all encodings" directive. One needs to handle specific cases

Encoded Slashes(