I explain the situation briefly.
I have a script taking a parameter:
switch.php?param=value
depending on this parameter I want to make a redirect to 1 of the 5
destination scripts, repassing the parameter:
scriptA.php?param=value
or scriptB.php?param=value
or scriptC.php?param=value
or scriptD.php?param=value
or scriptE.php?param=value
I would like to access the correct destination script in the following way:
www.myserver.com/value
I know how to make an URL rewrite for the switch:
RewriteRule ^(.*)$ /switch.php?param=$1 [QSA]
but then, within the switch script, I am doing the redirection using
header("Location: scriptC.php?param=value"), which modifies the URL
Do you know how can I achieve accessing the destination script by
keeping the initial URL "www.myserver.com/value" ?
Cheers
Daniele