<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family: Calibri, Arial, Helvetica, sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Yuri,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You could use a trigger based on this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FDisplay_a_custom_response_during_downtime&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=rsw5eVv6I0aNjfWLdnyFOjL57KyzP7sBEMZ3lYGmylg%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/Display_a_custom_response_during_downtime" shash="kW6zMXy6WbPrRquocQkudND26cl1wfCa4dFss3uytPsA/SIvApkWo/yOAFTKqEzTj4iOjaBx79qTH0BfmlqjFxqAXgjJ1lg9Ye1kcCEqCeKdZrlfRAz3p7Ds4hK3Q9P51mM5Rwx+B3n9aTn8QR8ZVd6E1qFUkOrLn0zOcRx1AWs=">https://wiki.eprints.org/w/Display_a_custom_response_during_downtime</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Instead of having a whitelisted IP address, you could check for a current_user:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">-&nbsp;&nbsp;&nbsp; if( $repository-&gt;config( &quot;maintenance_allowed_ip&quot; ) &amp;&amp; $request-&gt;connection-&gt;remote_ip eq $repository-&gt;config( &quot;maintenance_allowed_ip&quot;
 ) ){<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">+&nbsp;&nbsp;&nbsp; if( defined $repository-&gt;current_user ){<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">If you use EPrints user login (e.g. not 3<sup>rd</sup> party SSO), you would have to let the login page be displayed by changing this
 line (I haven't tested the updated one):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">-&nbsp;&nbsp;&nbsp; elsif( $uri !~ /^$urlpath\/(style|images)\// )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">+&nbsp;&nbsp;&nbsp; elsif( $uri !~ #^$urlpath/(style/|images/|cgi/users/login|cgi/users/home)# )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Yuri via Eprints-tech<br>
<b>Sent:</b> 16 May 2022 10:34<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> Re: [EP-tech] redirect some eprintid url to another site<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:solid #8D3970 1.0pt;padding:9.0pt 9.0pt 9.0pt 9.0pt">
<p class="MsoNormal" style="line-height:16.5pt;background:#F7F9FA"><strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970">CAUTION:</span></strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970"> This
 e-mail originated outside the University of Southampton. <o:p></o:p></span></p>
</div>
</div>
<div>
<p>Thanks to all, everything has worked as expected.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>A question:<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>I need to give access to the old content for some months, so I'll protect the new url with a basic auth. Doing it in '/var/auto-apache.conf' works but not /cgi/users/home because the perl handler kicks in before (page works but no css/js because they are
 blocked by auth).<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Is there a documented way to make a Eprints repository totally private? I mean, all the site can be accessed only with a login and pass.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Il 15/03/22 12:18, David R Newman ha scritto:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p>Hi Yuri,<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Assuming your repository is already HTTPS only, so you only need worry about editing ssl/securevhost.conf which has the PerlTransHandler line you could put in side a LocationMatch around the outside.&nbsp; You can technically do this for HTTP configuration but
 it will get overwritten if you ever run generate_apacheconf again.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>I have not ever tried putting a LocationMatch around a PerlTransHandler line but I am not aware of anything in Apache that would stop that working.&nbsp; Presumably you can separately write your mod rewrite rules in Apache configuration to deal with the redirects
 you need.&nbsp; However, it sounds like if you knew some of the redirects that would not help you guess the rest so I assume you would need to programmatically generate the mod rewrite rules.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>I assume by rename the archive you mean put on another hostname.&nbsp; You can pretty much do what you said but I would make sure you set aside plenty of time and a backout strategy in case you have problems.&nbsp; For changing the base URL you will need to edit the
 archive's cfg/cfg.d/10_core.pl.&nbsp; Usually it is only the host and/or securehost configuration settings that need to be changed.&nbsp; I would then run all of the following scripts:<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>(0. epadmin test)<o:p></o:p></p>
<p>1. generate_apacheconf<o:p></o:p></p>
<p>2. generate_static<o:p></o:p></p>
<p>3. apachectl restart (reload is probably sufficient but just to be safe I tend to use restart when I change the Apache config)<o:p></o:p></p>
<p>4. epadmin refresh_abstracts<o:p></o:p></p>
<p>5. epadmin refresh_views<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>I would also make sure you restart the indexer via the web admin menu.&nbsp; I cannot think of a specific reason why indexer tasks would care about a hostname change but probably best to be sure.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Having a look at Jon Salter's suggestion, that looks like a good solution.&nbsp; Although still hits EPrints, so would contribute to more server load than being able to redirect before hitting EPrints.&nbsp; Although, I think it is fairly negligible unless your server
 is always running hot.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Regards<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>David Newman<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 15/03/2022 10:28, Yuri wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div style="border:solid #8D3970 1.0pt;padding:9.0pt 9.0pt 9.0pt 9.0pt">
<p class="MsoNormal" style="line-height:16.5pt;background:#F7F9FA"><strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970">CAUTION:</span></strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970"> This
 e-mail originated outside the University of Southampton. <o:p></o:p></span></p>
</div>
</div>
<div>
<p>Hi David!<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>&nbsp;being it almost 99% of the archive and some thousands of items, it is quite difficult to have thousands lines $c-&gt;{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.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>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).<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Other than changing the base url, change apache configs, running generate_static / generate_abstracts, what would I need to rename the old archive?<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Il 14/03/22 18:00, David R Newman ha scritto:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p><span style="font-size:13.5pt">Hi both,</span><o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><span style="font-size:13.5pt">I have been doing something similar recently, albeit for abstract pages.&nbsp; I prefer the brute force approach of adding to $c-&gt;{rewrite_exceptions} and them manually adding the Apache Mod Rewrite rules to an archive level file
 called cfg/apache_redirects.conf and then including that in&nbsp; cfg/apachevhost.conf and/or ssl/securevhost.conf.&nbsp; You could write a script to programmatically generate this and the cfg.d file for rewrite_exceptions from a mapping file.</span><o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><span style="font-size:13.5pt">I had considered doing something that would allow you to add a metadata field called redirect_url or similar that you could just edit as a user (probably an admin or editor only if the item is live), which could then be used
 to automatically redirect off site.&nbsp; However, that would require some changes at a core level, which feels a bit excessive for tackling this problem.
</span><o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><span style="font-size:13.5pt">One option, if you want to redirect just from abstract pages, is you could test for this new redirect_url field being set and if it is embedding some JavaScript in the abstract page that redirects to the new URL.&nbsp; That is a
 bit hacky but makes it easier to add new items to be redirected in future rather than having to maintain a mappings list independent of the database.&nbsp; However, this is no use if you want to redirect document URLs.&nbsp; I am not sure whether that is what you want
 to do?</span><o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><span style="font-size:13.5pt">Regards</span><o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><span style="font-size:13.5pt">David Newman</span><o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 14/03/2022 4:07 pm, Yuri via Eprints-tech wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div style="border:solid #8D3970 1.0pt;padding:9.0pt 9.0pt 9.0pt 9.0pt">
<p class="MsoNormal" style="line-height:16.5pt;background:#F7F9FA"><strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970">CAUTION:</span></strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970"> This
 e-mail originated outside the University of Southampton. <o:p></o:p></span></p>
</div>
</div>
<div>
<p>Hi John!<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>&nbsp;thanks for sharing the gist. The objects are about 10.000, so I should load the map from a file. Unfortunately, It is an old Eprints without the EP_TRIGGER_URL_REWRITE but I think I just can copy the code at the begin of Rewrite.pm.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Thanks!<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Il 14/03/22 16:35, John Salter ha scritto:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Hi Yuri,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">I would use the EPrints URL Rewrite trigger.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">How many items are mapped to the other system?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Do you want to map landing page requests to one URL, and document requests to another URL (e.g. directly to the document in the other system)?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">This gist:&nbsp;<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fjesusbagpuss%2Fa5c574e1839612ef7e332d1d25edac42&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=8ezrCNHahUELhZaWtPH6a2BcWrxmCpLsoi6W4q0zFak%3D&amp;reserved=0" originalSrc="https://gist.github.com/jesusbagpuss/a5c574e1839612ef7e332d1d25edac42" shash="iuQMHs2EaPusJJw12ZeDL563ycuhFuWe262lESgPiz/6hunW1KNVN+4qEDsu36AmmugLSq0s6F79rOEJdZnRlo+Dz9u0yypYW2JyscOdwTDyUUmglXqpspw4r3IbDWBEYE7Frc+e1rS4Q3RHqJuqcAsw7bL4556KANS5b10u4no=" id="LPNoLPOWALinkPreview">https://gist.github.com/jesusbagpuss/a5c574e1839612ef7e332d1d25edac42</a>&nbsp;allows
 you to specify the eprintid / new locations in a hash.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">If all the new locations are on the same site, you could update line 19 to include the new base http URL, and just have the eprintid =&gt; otherid in the hash.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">As written, it will capture requests for anything starting with the EPrintID (requests for the landing page; downloads; thumbnail requests).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">You could map these URLs individually, and change the regex match on line 13 to redirect document requests to the new document URL; landing page requests to the new landing page
 etc.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Hope that helps - let me know if you need more info.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Cheers,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">John<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">&lt;eprints-tech-bounces@ecs.soton.ac.uk&gt;</a> on behalf of Yuri via Eprints-tech
<a href="mailto:eprints-tech@ecs.soton.ac.uk">&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
<b>Sent:</b> 14 March 2022 13:45<br>
<b>To:</b> EPrints.org Technical List <a href="mailto:eprints-tech@ecs.soton.ac.uk">
&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
<b>Subject:</b> [EP-tech] redirect some eprintid url to another site</span> <o:p>
</o:p></p>
<div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">CAUTION: This e-mail originated outside the University of Southampton.<br>
<br>
Hi!<br>
<br>
&nbsp; we're migrating many objects from eprints to various other platform. I<br>
would like to make redirects for the URLs of this documents. For example<br>
from myeprint.com/eprintid to another.site.com/otherid (I have a map<br>
with eprintid otherurl)<br>
<br>
I'm trying to do it with RewriteMap and RewriteRule but Eprints define<br>
the perl handler to manage urls (PerlTransHandler<br>
EPrints::Apache::Rewrite) to handle rewrites. I would like not to use<br>
cfg.d/url.pl because there are a lot of objects.<br>
<br>
Any idea? Should I patch Rewrite.pm to do it internally from a mapfile?<br>
Return DECLINED? I don't know if it is worth the time, I would prefer a<br>
simpler solution.<br>
<br>
<br>
*** Options: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2GS%2BMmoYsMI0HF95ryvMUrRdf09pUC50DLOnQteMaGU%3D&amp;reserved=0" originalSrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="doS2BwPTIvDx0zZKbnVlvaKkZ8+/D+A2wiYTlfeOoMf3o0Ulp+tFP+u1mT5tIbaMQTE+LfiMh2e2+amkE0hnElZH9KOivInz4oAAwTTos77gbPFh9pfU32T2QgrmidXuti8wB9prSSmh8NctG7w+W+ccQnh0JU683m4XxVDBwiE=">
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;amp;data=04%7C01%7CJ.Salter%40leeds.ac.uk%7C8bb7948ea1094eb8d25b08da05c18c2d%7Cbdeaeda8c81d45ce863e5232a535b7cb%7C1%7C0%7C637828626342660990%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=CWsbLXKKlI%2FlywSS10%2F5e79FaeDpl8hbEyUcguQ%2FJDc%3D&amp;amp;reserved=0</a><br>
*** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2FI3mDpcucncHqwZNEJ4fXRQoCdKm7KVYvfiyH6KVYag%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="DAKb6xc+P7v7y7wSSeqGX8y1jiMae95qRo6tMJSWc6vjtBwTQ+pe3tpSwh1iLsTw41KK3qefY9OlMviNsv8+jbHgIjRFx768R0kESI7A9Qy6SHBkYPRpNyGcBCMxUWI2Z8QnPqzxVDFK06dRTRed29GV36qwZg5Yk7pHKGkY81A=">
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;amp;data=04%7C01%7CJ.Salter%40leeds.ac.uk%7C8bb7948ea1094eb8d25b08da05c18c2d%7Cbdeaeda8c81d45ce863e5232a535b7cb%7C1%7C0%7C637828626342660990%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=0XS6HmJAybExIQbUk8p%2FB1asLntaSGKGwoZ%2Fj96MfgQ%3D&amp;amp;reserved=0</a><br>
*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0YGtTocGZ%2BUM%2Fw7%2F02Pn%2BFYzQF8%2F7%2Fe%2B1%2FU%2FEet%2Bx7g%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="h6ZQKFr8Zcu13p0GvwAJB2aTbem113Sh18hXOlXmUuheBMKbbVGoC5NR9mLxlcJ13Sb4bGS5fdTbAB3UQ3Yuf5oNWq7HlpTyWgqJovezZAZvjNGUhrs9S2z1IMIT1Uqim0AkjTmMzZu7fuFWJGYkTd4WnFNutM/97MjTde+NxjI=">
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;amp;data=04%7C01%7CJ.Salter%40leeds.ac.uk%7C8bb7948ea1094eb8d25b08da05c18c2d%7Cbdeaeda8c81d45ce863e5232a535b7cb%7C1%7C0%7C637828626342660990%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=iViKROkkJ3nKNy0MbLq2S%2BA8O4pQUOck9JnBKCBDyes%3D&amp;amp;reserved=0</a><o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>*** Options: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2GS%2BMmoYsMI0HF95ryvMUrRdf09pUC50DLOnQteMaGU%3D&amp;reserved=0" originalSrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="doS2BwPTIvDx0zZKbnVlvaKkZ8+/D+A2wiYTlfeOoMf3o0Ulp+tFP+u1mT5tIbaMQTE+LfiMh2e2+amkE0hnElZH9KOivInz4oAAwTTos77gbPFh9pfU32T2QgrmidXuti8wB9prSSmh8NctG7w+W+ccQnh0JU683m4XxVDBwiE=">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre>
<pre>*** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2FI3mDpcucncHqwZNEJ4fXRQoCdKm7KVYvfiyH6KVYag%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="DAKb6xc+P7v7y7wSSeqGX8y1jiMae95qRo6tMJSWc6vjtBwTQ+pe3tpSwh1iLsTw41KK3qefY9OlMviNsv8+jbHgIjRFx768R0kESI7A9Qy6SHBkYPRpNyGcBCMxUWI2Z8QnPqzxVDFK06dRTRed29GV36qwZg5Yk7pHKGkY81A=">http://www.eprints.org/tech.php/</a><o:p></o:p></pre>
<pre>*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C23b640a36d78454467fe08da3825da3c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637884032469819813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0YGtTocGZ%2BUM%2Fw7%2F02Pn%2BFYzQF8%2F7%2Fe%2B1%2FU%2FEet%2Bx7g%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="h6ZQKFr8Zcu13p0GvwAJB2aTbem113Sh18hXOlXmUuheBMKbbVGoC5NR9mLxlcJ13Sb4bGS5fdTbAB3UQ3Yuf5oNWq7HlpTyWgqJovezZAZvjNGUhrs9S2z1IMIT1Uqim0AkjTmMzZu7fuFWJGYkTd4WnFNutM/97MjTde+NxjI=">http://wiki.eprints.org/</a><o:p></o:p></pre>
</blockquote>
</blockquote>
</div>
</blockquote>
</blockquote>
</div>
</div>
</div>
</body>
</html>