Sha256: 22a604d33570a6c5c91e51b48784520cc0af21b2243e99a3fa7591a97a4f97d1
Contents?: true
Size: 512 Bytes
Versions: 47
Compression:
Stored size: 512 Bytes
Contents
# Redirection A set of flexible URI rewriting middleware which includes support for string mappings, regular expressions and status codes (e.g. 404 errors). ```ruby # String (fast hash lookup) rewriting: use Utopia::Redirection::Rewrite, '/' => '/welcome/index' # Redirect directories (e.g. /) to an index file (e.g. /index): use Utopia::Redirection::DirectoryIndex, index: 'index.html' # Redirect (error) status codes to actual pages: use Utopia::Redirection::Errors, 404 => '/errors/file-not-found' ```
Version data entries
47 entries across 47 versions & 1 rubygems