Redirect

Pagekit is a great CMS that even cares about your exceptions and errors. And if there's a 404 (page not found) error, Pagekit generates a little message, which tells the user, that this page does not exist.
If you would like to redirect all these errors or output your own custom HTML, you are invited to use this extension. You can also add targets to redirect requests from old link structures and even add statistics.
How to use
Installation
Using this extension is very easy. Just install it from Pagekit's marketplace.
Configuration
The configuration is pretty simple. First of all, open the settings.
First of all, you may choose the standard redirect response for targets. If you don't know what to do here, just leave it as it is.
Now switch over to redirects. You may enable the handling of three error types:
- Not Found
- Forbidden
- Unauthorized
Now you can easily configure how to handle these errors:
- Either redirect all requests that cause this specific error
- Or throw an error message containing your own custom HTML
If you would like to enable statistics, choose the next menu item and enable everything you need. Caution: This may causes a huge database size.
If you would like to disable the handling for specific file extensions or URLs, you may switch over to the next menu item.
Targets
If you would like to redirect https://example.org/this-page-does-not-exist
to https://example.org/this-page-does-exist
you can add a target.
A target can have a URL which is the URL the user gets redirected to once he enters the specific page. To define the pages, which should match this target, go to the URL-section and enter the URL that should be redirected. This extension allows to define multiple URLs like
https://example.org/this-page-does-not-exist
https://example.org/this-page-does-not-exist-too
https://example.org/index.php/this-page-does-not-exist
@blog
(Pagekit routes)
Check function
If you browse to a site that does not exist, you should be redirected to the page you entered in the settings.
How to fork a theme
Written by Abdulhalim on
spqr/toc updated
Written by Roman on
spqr/toc updated
Written by Nick Sbarounis on