API:EPrints/Apache/Rewrite

From EPrints Documentation
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


API: Core API

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


NAME

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

User Comments


DESCRIPTION

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


METHODS

User Comments


handler

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

Handler for managing an EPrints rewrite request $r.

User Comments


redir_permanent

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

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

User Comments


redir

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

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

User Comments


redir_see_other

$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


content_negotiate_best_plugin

$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

© Copyright 2023 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE

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