Hi Kirti, On Tue, Aug 7, 2012 at 1:27 PM, Kirti Bodhmage <k.bodhm...@qmul.ac.uk> wrote: > I think this question has been asked many times on this list.
I believe this is the first time :) > My requirement is to change handle url to something smaller. > > Instead of https://qmro.qmul.ac.uk/jspui/handle/123456789/2564 can we change > it to https://qmro.qmul.ac.uk/2564 . The 123456789 prefix is a bogus, non-existent prefix and the default value if you don't specify your actual handle prefix (assuming you have one). > As I want to reduce URL to something smaller, is there any way to avoid > handle.prefix all together? No, for now, you have to keep it. > I tried removing it but didn't work. Although setting it to something like > handle.prefix=1 does work. Do not do this. This indicates you're the institution with handle prefix "1", which you surely aren't. Handle redirects would be broken (there's a hdl.handle.net permaling automatically generated with this prefix). SOLUTION: I assume you're running a web server (e.g. Apache HTTPD) in front of your servlet contaniner (e.g. Tomcat). What you want to do is add an URL rewriting module (e.g. mod_rewrite) that will intercept all reqests in form of "^/[1-9]*$" (regex notation) and turn them into redirects to "/jspui/handle/123456789/$1". In mod_rewrite notation, this would be: RewriteEngine on RewriteRule ^/[1-9]*$ /jspui/handle/123456789/$1$1 [L] (This is off the top of my head, I didn't test it) > I assume any change in handle prefix will be applied to newly submitted > records not the existing records in repository. That's right, there's the "[dspace]/bin/dspace update-handle-prefix" command for updating existing items, but DO NOT change the prefix for the reasons I said above. > If I change the handle prefix then the old records will have handle.prefix > set to 123456789 and new one handle.prefix = 1. > > Is there any problem having both handle in repository? > > We have Symplectic Elements and repository tools depositing records into > Dspace. Will changing the handle url create any issue with publications?( a > question for Symplectic) Like I said above, don't change the handle prefix. Regards, ~~helix84 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech