Welcome to WebmasterWorld Guest from 22.214.171.124
RedirectMatch 301 http:\/\/.+\/b2citmdsp\.pgm[^=]+=(.*) http://www.newdomain.com/prodpage.pgm?item=$1
ScriptAliasMatch (.*)\.pgm$ /QSYS.LIB/B2CRLIVE.LIB/$1.pgm
one in particular where I need to match the name of the program and also change the value of a parameter
I know that redirecting to change the program name does work, I just can't get the change of the parameter name to work.
So I bit the bullet and modified the program so that it checks to see if it has been called with the old parameter name. If so it redirects to use the new parameter name.
Seems a bit clunky doing this, but hopefully there won't be too many of these after a while, and the redirect works fast, it's also transparent to the visitors.
your server logs will typically show a 200 status code under these circumstances instead of a 301