Can I have 'friendly' url's without a URL rewriter in IIS?

前端 未结 3 847
忘了有多久
忘了有多久 2021-01-25 01:35

Without having a url rewriter such as ISAPI_Rewrite available, is it possible to achieve the following:

I would like a user to browse to http://www.jjj.com/directo

3条回答
  •  无人共我
    2021-01-25 02:18

    You can tell IIS to have 404 and 403 errors execute a custom URL on your site (such as /urlhandler.cfm).

    Then, you can parse the 'cgi.query_string' and route the application anyway you desire using cfinclude to simply include the correct 'template.cfm', or, you can reformat the input your framework is expecting, or, use a project like http://coldcourse.riaforge.org/.

    Just one note, IIS will give you a URL that looks like this: '404;http://yoursite.com/the/url/you/wanted/to/route'.

提交回复
热议问题