title: redirect dynamic URL to another URL in IBM websphere
body: <p>We are deploying a new document management system. The old system will will have all documents migrated to the new system. The new system will have a new URL and parameters to reach documents.</p>
  
  <p>Over the last 10 years many documents, emails, portal sites, etc in our organization make reference to the old URLs. When we migrate to the new system, the old system will be decommissioned and all the URLs referring to the old system will be broken. However since the document id will be ported over to the new system this is opportunity to do a simple enough re-direct.</p>
  
  <p>New system will be running on IBM Websphere.</p>
  
  <p>Need to redirect:
  <code>Http://olddms/document/dms_id?12345</code>
  to
  <code>http://newdmes/documentsabc/olddms_id?12345</code></p>
  
  <p>There would need to be a single page website that runs a script that parses out 12345 and dynamically adds it to the final destination URL and adds the 12345 at the end of it.</p>
  
  <p>thus:</p>
  
  <p><code>Http://olddms/document/dms_id?12345</code>
  goes to
  <code>http://newdmsredirector/redirect (performs actual redirect)</code>
  sends to
  <code>http://newdms/documentsabc/olddms_id?12345</code></p>
  
  <p>I am not yet familiar with websphere and so can not even speculate on the scripting language for the middle wepage page (i.e: newdmsredirector)</p>
  
  <p>I don't yet know the exact URLs but the general code to perform this is most important with tweaks to the script depending on the URL.</p>
  
  <p>Also as a side note the newdmsredirector site or page would exist on the new websphere server and just redirect over to the other site.It could even be a page on the same DMS websphere site although I believe this part is irrelevant to solving the redirect code question.</p>