简体   繁体   中英

How to redirect traffic that comes from certain url to another using IIS - Web.config

This .htaccess file is exactly what i need.

However im running ASP.net and I need the exact code for the Web.Config

/ / / / / / / / .htaccess code / / / / / / / / /

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} referrerURL\.com/
RewriteRule ^$ http://www.redirectedURL.com [R=301,L]

为什么不安装http://www.helicontech.com/isapi_rewrite/http://www.helicontech.com/download-ape.htm (取决于您的IIS版本)来提供.htaccess功能?

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