Rewriting Rules für bibliothekarische Anwendungen

Mit Hilfe des mod_rewrite von Apache lassen sich recht mächtige Redirects realisieren - Hauptanwendung besteht im Verstecken von übermäßig komplexen URIs.

htaccess
#Forward to DOI-Resolver
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	[dD][oO][iI]:([0-9a-zA-Z./]+)	http://dx.doi.org/$1 [redirect]

#Forward to URN-Resolver
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	([uU][rR][nN]:[nN][bB][nN]:)(.+)	http://nbn-resolving.de/$1$2 [redirect]

#Forward to ISTC
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	([iI][sS][tT][cC]:)(.+)	http://istc.bl.uk/search/search.html?operation=print&expand=false&locations=all&istc=$2 [redirect]

#Forward to HeBIS-OpenURL-Resolver
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	openurl			http://linksolver.ovid.com/OpenUrl/LinkSolver?%{QUERY_STRING} [NC,redirect]
buechereielektrik/rewriting_rules_fuer_bibliothekarische_anwendungen.txt · Last modified: 2010-01-15 15:38 by strols
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0