开发者

.htaccess rewriting-url in aspx site?

Is it possible to use .htacces开发者_开发知识库s 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜