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

site.ini [SiteAccessRules]

The settings of [SiteAccessRules] in site.ini: Rules, DisabledModuleResult

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/site/SiteAccessRules.md

On this page

site.ini [SiteAccessRules]

The block [SiteAccessRules] of settings/site.ini, with 2 setting(s).

If you disable some modules or part of a module you can use the
SiteAccessRules group, this defines a list of rules which are
run in order.

The following is an example of how to disable content/search
and the rss module

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

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

Rules

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[SiteAccessRules]
# an empty "Rules[]" first replaces the shipped list; without it the items are added
Rules[]
*/ ?>

DisabledModuleResult

What a module switched off by the rules answers: notfound (the page of a
module that does not exist, 404, so nothing tells that it is there) or
disabled (the "disabled" page, error 22).

Default: notfound.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[SiteAccessRules]
DisabledModuleResult=notfound
*/ ?>

Generated by ./console exp:help:examples from settings/site.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