Thread:Project:Support desk/How to change link to registration page?/reply (2)

In case of the upload page the language label named "uploadnologintext" is used. This label just contains a normal wiki link like so: Special:UserLogin. Now one could obviously override this text in MediaWiki:Uploadnologintext, but this does not seem to be ideal: Message texts might change after MediaWiki updates, so that you always have to invest time in checking them again and again. And you still run in danger of either no longer having the current text or of having forgotten to change a link, which was added in the new MW version. Also there are possibly hundreds of messages, which contain a link to Special:UserLogin. It is not practible to override each single one of them - and that in all different languages!

To me it seems to be better to change a call to the ...Special:UserLogin page so that the server (not MediaWiki) returns another page (the one you want). That is possible with some small RewriteRules in .htaccess. You need to take care to preserve any parameters you might need (like the information on which page the user was before he triggered the login so that you can redirect him back there after successful login).

Am I missing something important? Is there a better idea? A hook maybe?