Skip to content

Instantly share code, notes, and snippets.

@cwilper
Created March 15, 2018 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwilper/7461b84ffe248495702ade6e91e5f2aa to your computer and use it in GitHub Desktop.
Save cwilper/7461b84ffe248495702ade6e91e5f2aa to your computer and use it in GitHub Desktop.
Nginx Permanent Redirect for Handle Prefix Change
server {
# Permanently redirect default DSpace handle prefix URLs to new, registered handle prefix
rewrite ^/handle/123456789/(.*)$ /handle/PUT-REGISTERED-PREFIX-HERE/$1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment