January 2019
Intermediate to advanced
520 pages
14h 32m
English
The INDEX_PATH expression matches the following paths:
The expression that fits these paths is "^/(index\\.html?)?$".
The ^ symbol means there must be a string beginning, while the $ symbol means there must be a string ending. When we place these symbols on either side, we prevent all prefixes and suffixes in the path and expect exact matching.
The ( ) brackets implies there must be a group. An expression in a group is treated as an indivisible unit.
The ? symbol means that the previous character is optional. We place it after the l character to allow the file in the path to have both .htm and .html extensions. As you'll see later, we don't have an index file to read. We use it as an alias of ...
Read now
Unlock full access