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

Version Path
utopia-2.15.1 wiki/pages/middleware/redirection/index.md
utopia-2.15.0 wiki/pages/middleware/redirection/index.md
utopia-2.14.0 wiki/pages/middleware/redirection/index.md
utopia-2.13.4 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.13.3 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.13.2 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.13.1 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.13.0 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.12.4 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.12.3 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.12.2 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.12.1 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.12.0 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.11.1 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.11.0 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.10.0 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.9.5 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.9.3 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.9.2 documentation/pages/wiki/middleware/redirection/content.md
utopia-2.9.1 documentation/pages/wiki/middleware/redirection/content.md