简体   繁体   中英

Windows IIS Rewrite URL

I have a page located at 'ourdomain/FolderName/ourpage' and have a redirect set up so that users can go to the link 'ourdomain/ourpage' and have it link to it. This works fine, however the URL bar still displays the long ugly 'ourdomain/FolderName/ourpage'.

I have the following URL Rewrite rule set up, however it seems to be doing nothing at all, the long link remains after hard-refreshing and restarting the web server. Do I have something set up incorrectly? (edited the real folder/page names out in screenshot for privacy sake)

URL Rewrite configuration

The pattern for the url rewrite shouldn't include the domain name.

The pattern should only be the url's path and shouldn't include the domain name.

The url rewrite rule should like below

Please modify the pattern part to ourdomain/FolderName/ourpage and test again.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM