I need to perform a redirect, from page http://exemplo/comunicacao/
to page http://exemplo/caminho_novo/comunicacao
.
I'm doing the following in web.config
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
<httpRedirect enabled="true" destination="/caminho_novo/comunicacao$Q" httpResponseStatus="Permanent" />
</system.webServer>
</configuration>
So far so good, but the problem is that people are calling the page already with parameters filled, and after the path /comunicacao
I have a asp
called exibe.asp
which receives parameters to display the content. / p>
Doing this as configured in web.config
, url
is set up as follows:
exemplo/caminho_novo/comunicacao/?id=136923/exibe.asp
That is, the parameter is coming before the page asp
, the right would be:
exemplo/caminho_novo/comunicacao/exibe.asp?id=136923
Can anyone help me?