Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello EveryOne , I Am Try Dynamic Write code In UrlRewriting.config for Url-Rewrite and Redirect For Url :-
http://www.test.com.au/test1/test2/test3/test4/test5/
I am Use This Code For 5th Level Of Url-Rewrite and Redirect:-
<add name="redirect_test_level4/5" redirect="Application" redirectMode="Permanent" virtualUrl="^~/test1/(.*)/(.*)/(.*)/(.*)/(.*)/$" rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/$4/$5" ignoreCase="true" /> <add name="test-rewrite-level2" virtualUrl="^/(test5)/(.+)/?$" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="/test1/test2/test3/test4/$1/$2" ignoreCase="true" />
Get Results :-
http://www.test.com.au/test4/test5
Any Idea To Done Dynamic URL Rewriting And Not Any Name Use For Reference To Write In Code , Please Reply Best Solution .
Thanks In Advance ...Regard Ajay Rathod
Hi Ajay Try my solution in this article. Please let me know if it helps? http://www.codeshare.co.uk/blog/create-a-redirect-page-in-umbraco-without-editing-the-config-file/
Paul
Thanks Paul Seal for reply , I am try dynamically Url-Rewrite and Redirect ,not static name to use for Url-Rewrite and Redirect . For example Write code In UrlRewriting.config for Url To Rewrite and Redirect try dynamic :-
https://www.test.com.au/test1/test2/test3/
<add name="redirect_test-level1" redirect="Application" redirectMode="Permanent" virtualUrl="^~/test1/(.*)/(.*)/$" rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/$1/$2" ignoreCase="true" /> <add name="test-rewrite-level1" virtualUrl="^/(.+)/(.+)/?$" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="/test1/$1/$2" ignoreCase="true" />
its Working and get result :-
https://www.test.com.au/test2/test3
but try one more level add for Rewrite and Redirect Url :-
https://www.test.com.au/test1/test2/test3/test4/
<add name="redirect_test-level2" redirect="Application" redirectMode="Permanent" virtualUrl="^~/test1/(.*)/(.*)/(.*)/$" rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/$2/$3" ignoreCase="true" /> <add name="test-rewrite-level2" virtualUrl="^/(.+)/(.+)/(.+)/?$" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="/test1/$1/$2/$3" ignoreCase="true" />
Its working only redirect not rewrite and show 404 page Error . if any idea or solution this problem ,please reply
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
URl Rewriting To Try Dynamically
Hello EveryOne , I Am Try Dynamic Write code In UrlRewriting.config for Url-Rewrite and Redirect For Url :-
I am Use This Code For 5th Level Of Url-Rewrite and Redirect:-
Get Results :-
Any Idea To Done Dynamic URL Rewriting And Not Any Name Use For Reference To Write In Code , Please Reply Best Solution .
Thanks In Advance ...Regard Ajay Rathod
Hi Ajay Try my solution in this article. Please let me know if it helps? http://www.codeshare.co.uk/blog/create-a-redirect-page-in-umbraco-without-editing-the-config-file/
Paul
Thanks Paul Seal for reply , I am try dynamically Url-Rewrite and Redirect ,not static name to use for Url-Rewrite and Redirect . For example Write code In UrlRewriting.config for Url To Rewrite and Redirect try dynamic :-
its Working and get result :-
but try one more level add for Rewrite and Redirect Url :-
Its working only redirect not rewrite and show 404 page Error . if any idea or solution this problem ,please reply
is working on a reply...