I have an htaccess
rule like this:
RewriteRule ^page/pretty/([A-Za-z0-9\-]+)-(.[A-Za-z0-9]*)/?$ /page/pretty/prettytemplatepage/?code=$2&path=page/pretty/$1-$2&slug=$1-$2 [P,L]
This works to allow a URL like:
site.com/page/pretty/some-pretty-page-ABCD
To display the page at:
site.com/page/pretty/prettypagetemplate/?code=ABCD&path=page/pretty/some-pretty-page-ABCD&slug=some-pretty-page-ABCD
Without redirecting/changing the URL in the address bar. How can I accomplish the same thing in Azure/IIS/web.config?
What you are asking for is a Reverse-Proxy implementation. This can be achieved using ARR & URL Rewrite modules. Refer this article talks on how to achieve this configuration: Reverse Proxy with URL Rewrite v2 and Application Request Routing
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.