作者 主題: 讓Apache支援了asp.net模組但沒有出現asp.net的重寫  (閱讀 2370 次)

0 會員 與 1 訪客 正在閱讀本文。

ahwa

  • 懷疑的國中生
  • **
  • 文章數: 79
    • 檢視個人資料
讓Apache支援了asp.net模組但沒有出現asp.的重寫
我該如何在Apache設定我網站已經做好的重寫的功能
不過我把他轉移到Apache
安裝了MOD_ASPDOTNET這個模組
但是就是沒有顯示重寫
有人知道嗎?

Web.config裡面是這樣寫的
不過轉到Apache那邊卻沒有了

<RewriterRule>
<LookFor>~/taibei.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/taibeixian.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/taoyuan.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=3</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/xinzhu.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=4</SendTo>
</RewriterRule>

<RewriterRule>
<LookFor>~/miaosu.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=5</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/jilong.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=6</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/yilan.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=7</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/taizhong.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=8</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/taizhongxian.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=9</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/nantou.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=10</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/yunlin.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=11</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/hualian.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=12</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/gaoxiong.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=13</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/gaoxiongxian.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=14</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/tainan.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=15</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/pingdong.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=16</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/taidong.aspx</LookFor>
<SendTo>~/Default.aspx?CategoryId=17</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>