Its your regex on the virtual path from what I can see. Your rule is saying it starts with latestnews but your path is /umbracoweb/home/latestnews. I think (although I suck at regex) the rule should therefore be:
No worries Deepali - its fine to write it like that as long as your not planning on changing the content structure (ie moving the location of latest news).
url rewriting not working for me..
Hello,
i have add this rule to config/UrlRewriting
i want
http://localhost/umbracoweb/home/latestnews/225.aspx
to http://localhost/umbracoweb/home/latestnews.aspx?LatestNewsId=225
but it is showing me the same url http://localhost/umbracoweb/home/latestnews.aspx?LatestNewsId=225
in web.config <add key="umbracoHideTopLevelNodeFromPath" value="false" />
What i am missing here
plz help!!
Can any one reply to my query...
Can any one have any idea abt this issue??
or i have asked something wrong..
if any admin is seeing this post plz guide...
Its your regex on the virtual path from what I can see. Your rule is saying it starts with latestnews but your path is /umbracoweb/home/latestnews. I think (although I suck at regex) the rule should therefore be:
<add name="LatestNewsIdRewrite" virtualUrl="(.*)/latestnews/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/{localLink:1178}?LatestNewsId=$1" ignoreCase="true" />
ttfn,
Rob
Thanks Rob for reply..
if i write like below then it works :
<add name="LatestNewsIdRewrite"
virtualUrl="home/latestnews/(.*).aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="home/latestnews.aspx?LatestNewsId=$1"
ignoreCase="true" />
Is it ok to write like this or any kind of issue can raise in futute.
Pls Guide.
Thanks.
No worries Deepali - its fine to write it like that as long as your not planning on changing the content structure (ie moving the location of latest news).
Cheers,
Rob
is working on a reply...