I wanna setup a URL ReWrite in my Umbraco Setup and after couple of hourse of trial and errors still stucked. Hope I can get a help from you guys here.
I want to urlrewrite so links to older pdf files been redirect to an umbraco page.
I have tried creating the following but it doesnt work, it just return standard IIS 404 page.
UrlReWrite Help...
Hey guys,
I wanna setup a URL ReWrite in my Umbraco Setup and after couple of hourse of trial and errors still stucked. Hope I can get a help from you guys here.
I want to urlrewrite so links to older pdf files been redirect to an umbraco page.
I have tried creating the following but it doesnt work, it just return standard IIS 404 page.
Why it's not working for me? Any suggestion?
Hi Danny
The string matching on the virtualUrl is done with a regular expression. The wildcard ( *.pdf ) will not match any of the pdf files in the directory.
Off the top of my head the regular expression would be
virtualUrl="~/oldpdfs/(.*)\.pdf"
This will match any combination of characters before the .pdf extension.
Dallas
is working on a reply...