I am using the client dependency framework for js and css files on the frontend of my website (umbraco) but when I use UrlRewriting.Net I am getting a non css copy of the page.
The most likely problem is that the URL rewriter is rewriting the request to DependencyHandler.axd. In his example he would need to change the virtualURL pattern to "^/directory/search/(((?!\.axd\?).)*)$" to exclude .axd requests from the rewrite.
Url Rewriting not working with ClientDependency
Not strictly an umbraco question.
I am using the client dependency framework for js and css files on the frontend of my website (umbraco) but when I use UrlRewriting.Net I am getting a non css copy of the page.
My rule looks like
<add name="directory"
virtualUrl="^/directory/search/(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/directory/search/?categoryid=$1"
ignoreCase="true" />
If i view the source of the page I can CD working as per normal.
If I use firebug it shows no rules. If I set debug to true then it works as expected.
Thanks,
Hello,
Have you found a solution for this problem?
Grtz
Wesley
The most likely problem is that the URL rewriter is rewriting the request to DependencyHandler.axd. In his example he would need to change the virtualURL pattern to "^/directory/search/(((?!\.axd\?).)*)$" to exclude .axd requests from the rewrite.
for me, catching the DependencyHandler.axd before any other rewrite rules and rewriting it to the root url worked a treat
- Tim
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.