0
I need to perform a page redirect http://exemplo/comunicacao/
to the page http://exemplo/caminho_novo/comunicacao
.
I’m performing the following on 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 the staff is calling the page already with parameters filled, and after the path /comunicacao
I have a asp
called exibe.asp
that receives parameters to display content.
Doing so as it is configured in web.config
, to url
comes mounted as follows :
exemplo/caminho_novo/comunicacao/?id=136923/exibe.asp
That is, the parameter is coming before the page asp
, sure would be :
exemplo/caminho_novo/comunicacao/exibe.asp?id=136923
Can someone help me?
Ricardo worked! Just had to use
httpRedirect enabled="true" destination="/presencial$V$Q" 
 exactDestination="true"
 httpResponseStatus="Permanent" />
What I didn’t understand very well was the use ofexactDestination="true"
.– Jorge.M