Quantcast
Viewing all articles
Browse latest Browse all 27852

URL Rewrite not working - Displays 404

Hi,

I have been playing around with the URL Rewrite module in IIS 7 and configured it on my local machine where it is working fine within the hosted application. I have now deployed the website to a test server where it is hosted as a web site only and now im getting an ASP 404 error page, Server Error in '/Reports' Application (which of course does not exist). I have no tried adding an application under the server's Default Web Site and pointed it to the same physical files as the deployed version and the URL Rewrite is working. Is there a trick to get it going under a web site?

My Rewrite configuration:

<rewrite>

<

rewriteMaps><rewriteMapname="Reports"/>

</

rewriteMaps><rules>

<

rulename="Reports"><matchurl="^reports/((.+)/)?(.+).aspx"/>

<

actiontype="Rewrite"url="Report.aspx?report={R:3}&amp;group={R:2}"appendQueryString="false"/></rule></rules>

</

rewrite>

I have tried turning on tracing as per http://learn.iis.net/page.aspx/467/using-failed-request-tracing-to-trace-rewrite-rules/ in an attempt to work out this problem, however the logs are not appearing.

Any help will be greatly appreciated.

Thanks,
Dan


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>