From EPrints Documentation
Revision as of 17:00, 15 March 2023 by Pod2wiki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


EPrints::Apache::Rewrite - rewrite cosmetic URLs to internally useful ones.

User Comments


This rewrites the URL Apache receives based on certain things, such as the current language.

Expands /archive/00000123/* to /archive/00/00/01/23/* and so forth.

This should only ever be called from within the mod_perl system.

This also causes some pages to be regenerated on demand, if they are stale.

User Comments


User Comments


$rc = EPrints::Apache::Rewrite::handler( $r )

Handler for managing an EPrints rewrite request $r.

User Comments


$rc = EPrints::Apache::Rewrite::redir_permanent( $r, $url )

Redirect permanently (301 Moved Permanently) request $r to URL specified by $url.

User Comments


$rc = EPrints::Apache::Rewrite::redir( $r, $url )

Redirect temporarily (302 Found) request $r to URL specified by $url.

User Comments


$rc = EPrints::Apache::Rewrite::redir_see_other( $r, $url )

Redirect the request $r to another resource (303 See Other) specified by the URL in $url.

User Comments


$rc = EPrints::Apache::Rewrite::content_negotiate_best_plugin( $repository, %o )

Determine the best content type to provide based on the options provided by %o.

Returns a string containing the best content type (e.g. text/html).

User Comments


© Copyright 2023 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.



This file is part of EPrints 3.4 http://www.eprints.org/.

EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.

EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.

User Comments