Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

requestrules.ini [Rule-system_url_full_view_to_alias]

The settings of [Rule-system_url_full_view_to_alias] in requestrules.ini: Description, Conditions, Action, ActionArgs, FallbackAction

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/requestrules/Rule-system_url_full_view_to_alias.md

On this page

requestrules.ini [Rule-system_url_full_view_to_alias]

The block [Rule-system_url_full_view_to_alias] of settings/requestrules.ini, with 5 setting(s).

--- Rules shipped ready to use -----------------------------------------------
Defined here and off. Switch one on for a siteaccess by adding its name to
RuleList[] there, e.g. in settings/siteaccess/site/requestrules.ini.append.php:

[RequestRuleSettings]
RuleList[]=system_url_full_view_to_alias

Never edit settings/requestrules.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/requestrules.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/requestrules.ini.append.php for one siteaccess,
  • extension/<extension>/settings/requestrules.ini.append.php in an extension (read when the extension is active).

Description

Default: A full view typed as its system URL (content/view/full/<node>) goes to the node's URL alias, unless the user has the policy content/view_system_url. Without an alias: not found..

<?php /* #?ini charset="utf-8"?
# settings/override/requestrules.ini.append.php
[Rule-system_url_full_view_to_alias]
Description=A full view typed as its system URL (content/view/full/<node>) goes to the node's URL alias, unless the user has the policy content/view_system_url. Without an alias: not found.
*/ ?>

Conditions

Default: a hash of 4: requested_via=system, module_view=content/view, view_mode=full, policy=!content/view_system_url.

<?php /* #?ini charset="utf-8"?
# settings/override/requestrules.ini.append.php
[Rule-system_url_full_view_to_alias]
# an empty "Conditions[]" first replaces the shipped list; without it the items are added
Conditions[]
Conditions[requested_via]=system
Conditions[module_view]=content/view
Conditions[view_mode]=full
Conditions[policy]=!content/view_system_url
*/ ?>

Action

Default: redirect_to_alias.

<?php /* #?ini charset="utf-8"?
# settings/override/requestrules.ini.append.php
[Rule-system_url_full_view_to_alias]
Action=redirect_to_alias
*/ ?>

ActionArgs

Default: a hash of 1: status=301.

<?php /* #?ini charset="utf-8"?
# settings/override/requestrules.ini.append.php
[Rule-system_url_full_view_to_alias]
# an empty "ActionArgs[]" first replaces the shipped list; without it the items are added
ActionArgs[]
ActionArgs[status]=301
*/ ?>

FallbackAction

Default: notfound.

<?php /* #?ini charset="utf-8"?
# settings/override/requestrules.ini.append.php
[Rule-system_url_full_view_to_alias]
FallbackAction=notfound
*/ ?>

Generated by ./console exp:help:examples from settings/requestrules.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x