EPrints Technical Mailing List Archive
Message: #08893
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] redirect some eprintid url to another site
- To: Yuri <yurj@alfa.it>, David R Newman <drn@ecs.soton.ac.uk>, "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] redirect some eprintid url to another site
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Tue, 15 Mar 2022 10:41:22 +0000
CAUTION: This e-mail originated outside the University of Southampton.
If you added the new URL to an EPrint-level field, you could extend the example I provided to get the EPrint dataobject from the matched EPrintID, and then get the URL from the field and redirect from there.
I wouldn't recommend doing this for a small subset of items within a repository, but for 99% of itmes, it wouldn't be the worst option.
It would add an overhead to every request - but as the result would nearly always be to redirect to another server, it's not too concerning.
Cheers, John From: Yuri <yurj@alfa.it>
Sent: 15 March 2022 10:28 To: David R Newman <drn@ecs.soton.ac.uk>; eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>; John Salter <J.Salter@leeds.ac.uk> Subject: Re: [EP-tech] redirect some eprintid url to another site Hi David!
being it almost 99% of the archive and some thousands of items, it is quite difficult to have thousands lines $c->{rewrite_exceptions} but seems the only possible path, being the perl handler running before rewriterule. In other cases, it is possible to use LocationMatch to set the default handler thus running rewrite rules.
Another option could be rename the old archive? Thus we could use the virtualhost to do just redirects, and access old items (we need them internally anyway).
Other than changing the base url, change apache configs, running generate_static / generate_abstracts, what would I need to rename the old archive?
Il 14/03/22 18:00, David R Newman ha scritto:
|
- Follow-Ups:
- Re: [EP-tech] redirect some eprintid url to another site
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] redirect some eprintid url to another site
- References:
- [EP-tech] redirect some eprintid url to another site
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] redirect some eprintid url to another site
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] redirect some eprintid url to another site
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] redirect some eprintid url to another site
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] redirect some eprintid url to another site
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] redirect some eprintid url to another site
- Prev by Date: Re: [EP-tech] redirect some eprintid url to another site
- Next by Date: Re: [EP-tech] redirect some eprintid url to another site
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):