简体   繁体   中英

.htaccess rewriting-url in aspx site?

Is it possible to use .htaccess url-rewriting rules in an ASPX website?

Thank you in advance.

Install and use the URL rewriting module for IIS:

http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/

Yes, you can do that in ASP.NET with IIS on Windows 7 or Windows XP:

  • In Windows 7:

    1. Download "URL Rewrite Module" for IIS. (It's free and available on IIS.net )
    2. Now we have "URL Rewrite" option in IIS-7
    3. Then click on "Import Rules" option

  • In XP:

    1. Install "IsAPI_RewriteManager"
    2. Then click on "Default Web Site"in the left panel
    3. Then configure the website in which .htaccess file exists. (The file contents automatically will be shown in right panel.)
    4. Then click on edit and close
    5. Then click the "Apply" button

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