Skip to content

Instantly share code, notes, and snippets.

Created October 24, 2012 00:00
Show Gist options
  • Save anonymous/3942757 to your computer and use it in GitHub Desktop.
Save anonymous/3942757 to your computer and use it in GitHub Desktop.
Evergreen ILS JSPac to Tpac redirection
# JSPac to TPac redirection
RedirectMatch ^/opac/[^/]+/skin/[^/]+/xml/myopac.xml /eg/opac/myopac/main
RewriteEngine on
RewriteOptions inherit
RewriteMap unescape int:unescape
RewriteCond %{QUERY_STRING} \bl=([0-9]+)
RewriteRule ^/opac/[^/]+/skin/[^/]+/xml/index\.xml$ /eg/opac/home?locg=%1 [R=301,L]
RewriteCond %{QUERY_STRING} \br=([0-9]+)
RewriteRule ^/opac/[^/]+/skin/[^/]+/xml/rdetail\.xml$ /eg/opac/record/%1? [R=301,L]
RewriteCond %{QUERY_STRING} \b(rt|tp)=([^&]+).*\bt=([^&]+)
RewriteRule ^/opac/[^/]+/skin/[^/]+/xml/rresult\.xml$ /eg/opac/results?query=${unescape:%3}&qtype=%2 [R=301,L]
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment