Web.Stencils.TWebStencilsPathTemplateItem.Redirect
Delphi
property Redirect: string read FRedirect write FRedirect;
C++
__property System::UnicodeString Redirect = {read=FRedirect, write=FRedirect};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | Web.Stencils.pas Web.Stencils.hpp |
Web.Stencils | TWebStencilsPathTemplateItem |
Description
The path template produces a request path when matched to the template.
It can contain variable markers from the Template. This allows you to match additional URLs to specific path templates.
Examples
The example below redirects e.g. http://www.host.com/mysite/ to /index.html.
Template = '/', Redirect = '/index.html'
The example below redirects a redirect path that does not match any other TWebStencilsPathTemplateItem to /notfound.html.
Template = '*', Redirect = '/notfound.html'