# .htaccess
-ErrorDocument 400 /cgi-bin/koha/koha-tmpl/errors/400.pl
-ErrorDocument 401 /cgi-bin/koha/koha-tmpl/errors/401.pl
-ErrorDocument 403 /cgi-bin/koha/koha-tmpl/errors/403.pl
-ErrorDocument 404 /cgi-bin/koha/koha-tmpl/errors/404.pl
-ErrorDocument 500 /cgi-bin/koha/koha-tmpl/errors/500.pl
+ErrorDocument 400 /cgi-bin/koha/errors/400.pl
+ErrorDocument 401 /cgi-bin/koha/errors/401.pl
+ErrorDocument 403 /cgi-bin/koha/errors/403.pl
+ErrorDocument 404 /cgi-bin/koha/errors/404.pl
+ErrorDocument 500 /cgi-bin/koha/errors/500.pl
'./help.pl' => 'INTRANET_CGI_DIR',
'./installer-CPAN.pl' => 'NONE',
'./installer' => 'INTRANET_CGI_DIR',
- './koha-tmpl/errors' => {target => 'INTRANET_CGI_DIR', trimdir => 2},
+ './errors' => {target => 'INTRANET_CGI_DIR'},
'./koha-tmpl/intranet-tmpl' => {target => 'INTRANET_TMPL_DIR', trimdir => -1},
'./koha-tmpl/opac-tmpl' => {target => 'OPAC_TMPL_DIR', trimdir => -1},
'./kohaversion.pl' => 'INTRANET_CGI_DIR',
SetEnv PERL5LIB "__PERL_MODULE_DIR__"
Options +FollowSymLinks
+ ErrorDocument 400 /cgi-bin/koha/errors/400.pl
+ ErrorDocument 401 /cgi-bin/koha/errors/401.pl
+ ErrorDocument 403 /cgi-bin/koha/errors/403.pl
+ ErrorDocument 404 /cgi-bin/koha/errors/404.pl
+ ErrorDocument 500 /cgi-bin/koha/errors/500.pl
+
# Rewrite Rules
RewriteEngine On
SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml"
SetEnv PERL5LIB "__PERL_MODULE_DIR__"
Options +FollowSymLinks
+
+ ErrorDocument 400 /cgi-bin/koha/errors/400.pl
+ ErrorDocument 401 /cgi-bin/koha/errors/401.pl
+ ErrorDocument 403 /cgi-bin/koha/errors/403.pl
+ ErrorDocument 404 /cgi-bin/koha/errors/404.pl
+ ErrorDocument 500 /cgi-bin/koha/errors/500.pl
+
RewriteEngine On
# Uncomment to turn on rewrite logging
# RewriteLog __LOG_DIR__/koha-intranet-rewrite.log
--- /dev/null
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › An Error Has Occurred
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
+<!--TMPL_INCLUDE NAME="masthead.inc" -->
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+
+<div id="doc3" class="yui-t1">
+ <div id="bd">
+ <div id="yui-main">
+ <div class="yui-b"><div class="yui-g">
+ <h3>An Error has Occurred</h3>
+ <h4>Error 404</h4>
+ <ul>
+ <li>This error means that the Koha is pointed an invalid link.</li>
+ <li>To report this error, you can
+ <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+ <li>Use top menu bar to navigate to another part of Koha.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<!-- <div id="main"> -->
+<!-- </div> -->
+</body>
+</html>
--- /dev/null
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › An Error Has Occurred
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
+<!--TMPL_INCLUDE NAME="masthead.inc" -->
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+
+<div id="doc3" class="yui-t1">
+ <div id="bd">
+ <div id="yui-main">
+ <div class="yui-b"><div class="yui-g">
+ <h3>An Error has Occurred</h3>
+ <h4>Error 404</h4>
+ <ul>
+ <li>This error means that the you are trying to access a link that you're not authorized to see.</li>
+ <li>Try logging in to the catalog</li>
+ <li>To report this error, you can
+ <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+ <li>Use top menu bar to navigate to another part of Koha.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<!-- <div id="main"> -->
+<!-- </div> -->
+</body>
+</html>
--- /dev/null
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › An Error Has Occurred
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
+<!--TMPL_INCLUDE NAME="masthead.inc" -->
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+
+<div id="doc3" class="yui-t1">
+ <div id="bd">
+ <div id="yui-main">
+ <div class="yui-b"><div class="yui-g">
+ <h3>An Error has Occurred</h3>
+ <h4>Error 404</h4>
+ <ul>
+ <li>This error means that you are forbidden for some reason to see this page.</li>
+ <li>To report this error, you can
+ <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+ <li>Use top menu bar to navigate to another part of Koha.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<!-- <div id="main"> -->
+<!-- </div> -->
+</body>
+</html>
--- /dev/null
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › An Error Has Occurred
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
+<!--TMPL_INCLUDE NAME="masthead.inc" -->
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+
+<div id="doc3" class="yui-t1">
+ <div id="bd">
+ <div id="yui-main">
+ <div class="yui-b"><div class="yui-g">
+ <h3>An Error has Occurred</h3>
+ <h4>Error 404</h4>
+ <ul>
+ <li>This error means that the link was broken and that the page doesn't exist.</li>
+ <li>To report this error, you can
+ <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+ <li>Use top menu bar to navigate to another part of Koha.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<!-- <div id="main"> -->
+<!-- </div> -->
+</body>
+</html>
--- /dev/null
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › An Error Has Occurred
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
+<!--TMPL_INCLUDE NAME="masthead.inc" -->
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+
+<div id="doc3" class="yui-t1">
+ <div id="bd">
+ <div id="yui-main">
+ <div class="yui-b"><div class="yui-g">
+ <h3>An Error has Occurred</h3>
+ <h4>Error 404</h4>
+ <ul>
+ <li>An error occurred while try to process your request.</li>
+ <li>To report this error, you can
+ <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+ <li>Use top menu bar to navigate to another part of Koha.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<!-- <div id="main"> -->
+<!-- </div> -->
+</body>
+</html>
{
template_name => "errors/400.tmpl",
query => $query,
- type => "intranet",
+ type => "opac",
authnotrequired => 1,
debug => 1,
}
{
template_name => "errors/401.tmpl",
query => $query,
- type => "intranet",
+ type => "opac",
authnotrequired => 1,
debug => 1,
}
{
template_name => "errors/402.tmpl",
query => $query,
- type => "intranet",
+ type => "opac",
authnotrequired => 1,
debug => 1,
}
{
template_name => "errors/403.tmpl",
query => $query,
- type => "intranet",
+ type => "opac",
authnotrequired => 1,
debug => 1,
}
{
template_name => "errors/404.tmpl",
query => $query,
- type => "intranet",
+ type => "opac",
authnotrequired => 1,
debug => 1,
}
{
template_name => "errors/500.tmpl",
query => $query,
- type => "intranet",
- authnotrequired => 1,
+ type => "opac",
+ koha-tmpl/authnotrequired => 1,
debug => 1,
}
);