IIS URL Rewrite handle # anchor tags

  • Thread starter Thread starter McDevitt1
  • Start date Start date
M

McDevitt1

Guest
I have a url cars\model\BMW\index.html#page2 and I am trying to redirect it to cars\model\PDF\BMW.html#page2 is there anyway to get this working?


Is there anyway to find out if the URL has a # sign in IIS?


<rule name="InboundRuleTrailingPageNumber" enabled="true" stopProcessing="true">
<match url="cars\/model\/(\w+)\/index.html(\w+)" />
<conditions trackAllCaptures="false">
<add input="{REQUEST_URI}" pattern="cars\/model\/(\w+)\/index.html(\w+)" negate="true"/>
</conditions>
<action type="Redirect" url="/cars/model/content/PDF/{R:1}.pdf#page={R:2}" logRewrittenUrl="true"/>
</rule>


Continue reading...
 

Similar threads

Back
Top