PHPackages                             bitmotion/custom-error-page - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. bitmotion/custom-error-page

Abandoned → [typo3/cms-site](/?search=typo3%2Fcms-site)ArchivedTypo3-cms-extension[Debugging &amp; Profiling](/categories/debugging)

bitmotion/custom-error-page
===========================

Shows custom 403/404/503 page depending on domain/language/current tree...

v1.3.0(6y ago)21.3k8GPL-2.0-or-laterPHP

Since Oct 26Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Leuchtfeuer/custom-error-page)[ Packagist](https://packagist.org/packages/bitmotion/custom-error-page)[ Docs](https://bitmotion.de)[ RSS](/packages/bitmotion-custom-error-page/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (9)Used By (0)

This version of the custom\_error\_page can only be used by &gt;= TYPO3 8 LTS instances.

How to use
----------

[](#how-to-use)

There are up to four steps to take:

- Set up the YAML with all your domains for each page root tree and their pids to their specific 403/404/503 page. An example file is in the folder "Examples" of this extension. The default file destination is "typo3conf/custom\_error\_conf.yml".
- Change the value of \[FE\]\[pageNotFound\_handling\] to "USER\_FUNCTION:Bitmotion\\CustomErrorPage\\Utility\\CustomErrorPageUtility-&gt;showCustom404Page" (without "")
- Change the value of \[FE\]\[pageUnavailable\_handling\] to "USER\_FUNCTION:Bitmotion\\CustomErrorPage\\Utility\\CustomErrorPageUtility-&gt;showCustom503Page" (without "")

There is a configuration example in `Resources/Private/Examples`.

- Optional: Add the "Error message handling" plugin on each 404 error pages instead of a simple content elements.

Extension Configuration
-----------------------

[](#extension-configuration)

There are two configuration options.

- `basic.path` (string): Path to the YAML file containing the configuration (see: below).
- `basic.force404` (bool): If set, the configured 404 page will shown on 403 errors.

Configuration File
------------------

[](#configuration-file)

Full example:

```
configuration: &default
  name: www.domain.tld
  pages:
    403:  89
    404:  12
    503:  29
  language-pattern:
    default: true
    en: 0
    de: 1
    fr: 2
  additional-tlds:
    - tld: .foo
    - tld: .bar
    - tld: .foo.bar
  https: true
  forward-reason: true

404: &404
  - domain:
