2012-03-27 100 views
0

我正在使用Intelligencia進行網址重寫功能。用擴展名重寫網址

<configSections> 
    <section name="rewriter" requirePermission="false" 
     type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/> 
</configSections> 

以下排除其工作罰款我的搜索頁面

<rewrite url="~/search/(.+).aspx" to="~/search.aspx?type=$1"/> 

,但我需要用下面寫規則

<rewrite url="~/search/(.+)" to="~/search.aspx?type=$1"/> 

我的搜索頁。如果我上述規則我是運行獲取頁面未找到錯誤。

Plz建議我在IIS中有任何設置。

+0

有什麼理由不使用asp.net路由?我覺得它是一個更優雅的解決方案。 – walther 2012-03-27 15:36:32

+0

您使用的是哪個版本的IIS? – Curt 2012-03-27 15:36:49

+0

IIS 6.0版本 – Sree 2012-03-27 15:38:44

回答

0

下面是一篇文章(有一個可下載的解決方案樣品)使用路由映射到擴展名「搜索引擎友好」的URL:

http://goo.gl/BBnsa