TFolderUrlMode Enumeration
Controls how a TStaticModule handles the trailing slash of URLs that map to a directory, issuing an HTTP 301 redirect to the canonical form when needed.
Syntax
Unit: Sparkle.Module.Static
Members
| Name | Value | Description |
|---|---|---|
| RedirectToSlash | 0 | When a directory is requested without a trailing slash, redirect to the same URL with a trailing slash appended. |
| RedirectFromSlash | 1 | When a directory is requested with a trailing slash, redirect to the same URL with the trailing slash removed. |
| NoRedirect | 2 | Serve the directory request as-is, without performing any trailing-slash redirection. |