url rewriting - Umbraco UrlReWrite -


i wanna setup url rewrite in umbraco setup , after couple of hourse of trial , errors still stucked. hope can guys here.

i want urlrewrite links older pdf files been redirect umbraco page.

i have tried creating following doesnt work, return standard iis 404 page.

<add name="pdfs" virtualurl="~/oldpdfs/*.pdf" rewriteurlparameter="excludefromclientquerystring" destinationurl="/mycustom404page.aspx" redirectmode="permanent" ignorecase="true" /> 

why it's not working me? suggestion?

perhaps try this:

<add name="pdfs" virtualurl="~/oldpdfs/(.*).pdf" rewriteurlparameter="excludefromclientquerystring" destinationurl="/mycustom404page.aspx" redirectmode="permanent" ignorecase="true" /> 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -