Compatible with DokuWiki
2014-09-29
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to whennotfound
This plugin forwards all requests to non-existent Dokuwiki pages to an underlying website. Motivation for this is gradual transition of the website from original application to Dokuwiki.
Plugin is by default disabled so installation should be without any problems.
Before enabling the plugin be sure you have correctly set path to the underlying website.
If your underlying website uses some redirections via
.htaccess
you have to port these redirections to Dokuwiki's .htaccess
.
If you need to access Dokuwiki, add following GET parameters:
dokuwiki_simpleforward=0
,do=edit
when you need to create the page).This would temporarily disable the plugin and you can e.g. create the Dokuwiki page.
example.net/bigpage/subpage/subsubpage?dokuwiki_simpleforward=0&do=edit
will enable you to create subsubpage.
— hh lohmann 2014-11-14 17:00: being not sure if I understand the plugin's whole story the following makes it work:
/my_path/htdocs/
/
, but it has to be a directoryerrMessages/myPersonal404.FILE_EXTENSION
php
the file will be handed over to PHP, with any other extension simpleforward directly outputs its content - this is important for the “DokuWiki page” usage as stated next/my_path/doku/
doku.php
data/pages/errMessages/myPersonal404.txt
and editing doku.php?id=errMessages:myPersonal404
. Note that you cannot use any DokuWiki markup or plugins etc.1) in “myPersonal404” that way, but you have full HTML power (including client side means like Javascript) to create some information and do further (more sophisticated) forwarding, for instance something like2) <h1>Page not found</h1> <script type="text/javascript"> document.write ( '' +'<p><i>' + document.location.search.split('?id=')[1] + '</i> does not lead to an existing page.' + '</p>' ); </script> <p>Do you want to go to the <a href="/doku/doku.php">Start Page</a>?</p>