Created
October 24, 2012 00:00
-
-
Save anonymous/3942757 to your computer and use it in GitHub Desktop.
Evergreen ILS JSPac to Tpac redirection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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