# controller\_website\_redirect

Source: https://zotonic.com/docs/1900/controller_website_redirect

URI: https://zotonic.com/id/1900

Language: en



This controller does a redirect to the `website` property of the given [resource](/id/doc_glossary#term-resource).

The required `id` argument can be a resource id or name. The resource must exist and be visible to the current user. When its `website` property is not empty, the controller returns a temporary redirect to that URL; otherwise no redirect is produced.

This controller is selected by `controller_page` when a resource has `is_website_redirect` enabled. Relative website values are expanded against the current site URL.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1900?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1900?language=en>)
