Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have urlrewrite installed.

We have a legacy base of computers that need to use a particular url (the important bits are in bold):

http://old-server/arsys/forms/old-server/RQC%3AServiceRequestConsole/RQC+User+View/

This app has the weird thing that it embeds the server name into the URL path. We are moving it to a new server, and need to change this URL. I have "old-server" aliased to the new-server IP, but I also need to rewrite that path to:

http://new-server/arsys/forms/new-server/RQC%3AServiceRequestConsole/RQC+User+View/

The rewrite rule I have is:

<rule>
    <from>/arsys/forms/old-server/RQC%3AServiceRequestConsole/RQC+User+View/</from>
    <to type="redirect">%{context-path}/arsys/forms/new-server/RQC%3AServiceRequestConsole/RQC+User+View/</to>
</rule>

But it seems to be croaking on the %3A (which is given explicitly in the shortcut in the legacy system.)

Does anyone have a suggestion on how to get this rule right?

share|improve this question
    
Try replacing %3A with its decoded character :. –  mgorven Jun 25 '12 at 23:06
    
or escaping the % (so \%3A) - untested, no clue if it'll help. –  EightBitTony Jun 25 '12 at 23:17
    
I did, that didn't seem to do it. –  Fraser Orr Jun 25 '12 at 23:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.