Hi All,
I want to replace part of the URL in Rewrite rule.
from
https://www.domain.com/blogs/businesscloud/2021/04/20/trial-balance-report-in-sage-intacct/
to
https://www.greytrix.com/blogs/intact/2021/04/20/trial-balance-report-in-sage-intacct/
page load:)
Response.Redirect code use page load or master page:)
then full url load: = Request.Url.ToString (then replace Request Url GetLeftPart
Request.Url.ToString().Replace((UriPartial Authority) + Request.ApplicationPath, "https://www.greytrix.com/"));
this code automatic your full link dynamic old url to new domain url view, didn't need big coding.
I am use this code very easy.
happly coding:)
emample:
http://phonebook.somee.com/phonebook/Bangladesh
http://phonebook.somee.com/phonebook/india
http://phonebook.somee.com/contact/-305358353/sa-paribahan-doniala-para-branch-address-and-contact-number
Result
http://pbinf.com/phonebook/Bangladesh
http://pbinf.com/phonebook/india
http://pbinf.com/contact/-305358353/sa-paribahan-doniala-para-branch-address-and-contact-number
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.