![]() |
| > Home > Documentation > Latest documentation > Local config directives > AliasTable |
|
AliasTableSpecify a table that contains page redirect instructions. Synopsis
The parameter is expected to be the name of a table in the website's database. There is no default value, which means that this facility is disabled by default. ScopeThis directive is only available for use in the local (catalog.cfg) configuration file. It will not affect any other website in any way. This directive will not work in the global (interchange.cfg) configuration file. DescriptionThis directive specifies the name of a table that contains page redirect instructions. The table is expected to consist of the following columns:
If this directive is enabled, then all page requests will be looked up in the named table's "code" column. The name of the "code" column is not fixed but can be any name as long as it is set as the primary key. If a row is found then the page named in the "real_page" column will be used instead of the specified page name. If the optional "base_page" has a value then the "real_page" will be assumed to be a SKU and the specified "base_page" will be used as a flypage to display the specified product. If the optional "base_control" column has a value then it should contain a comma-separated list of CGI variable names and values, with each variable name and value pair in a "name=value" format. This list of variables and values will be passed to the target page as CGI variables. The specified CGI variable values will be overridden if any CGI variables with the same name are encoded into the original request URI. ExampleThe following example makes use of an AliasTable table that has the following values:
Using the above data, the following request mapping will occur:
|
| Home | Legal nonsense | Privacy policy | Contact us |