大家好小白問下一個網站遷移的問題是基礎運營商的空間遷移把網站遷移到另一個空間直接web程序複製過去並沒有sqlserver數據庫經確認是支持url_rewrite 現在可以打開首頁點擊二級頁面出現404報錯原來是有偽靜態的規則寫在了web.config 遷移好後就是出現這樣了我覺得是偽靜態出現了問題是路徑不對嗎還是什麼我也不清楚這個問題該怎麼解決或者解決思路是什麼? ? 請大家幫忙 謝謝O(∩_∩)O 補充下我對程式設計和linux頗有好感 初學者該怎麼學開發呢? 是網站這塊的 y=_=y
<!-- 1、URL重写 -->
</configSections>
<RewriterConfig><!--3、URL重写规则-->
<Rules>
<RewriterRule>
<LookFor>~/index.html</LookFor><!--重写后的地址-->
<SendTo>~/Default.aspx</SendTo><!--实际访问的URL地址-->
</RewriterRule>
<RewriterRule>
<LookFor>~/introduce.html</LookFor>
<SendTo>~/CompanyInfo.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/culture.html</LookFor>
<SendTo>~/CompanyInfo1.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/contact.html</LookFor>
<SendTo>~/CompanyInfo2.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Products.html</LookFor>
<SendTo>~/ProductList.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Products-(\d+).html</LookFor>
<SendTo>~/ProductList.aspx?TypeID=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Products.html?PName=(\D+)</LookFor>
<SendTo>~/ProductList.aspx?PName=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/ProductIntroduct-(\d+).html</LookFor>
<SendTo>~/ProductIntro.aspx?ProID=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SuccessfulCase.html</LookFor>
<SendTo>~/CaseList.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SuccessfulCase-(\d+).html</LookFor>
<SendTo>~/CaseList.aspx?ID=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SuccessfulCase-P(\d+).html</LookFor>
<SendTo>~/CaseList.aspx?page=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SuccessfulCase-(\d+)-P(\d+).html</LookFor>
<SendTo>~/CaseList.aspx?ID=&page=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SuccessfulContent-Num(\d+).html</LookFor>
<SendTo>~/CaseIntro.aspx?ArticID=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/DownLoad.html</LookFor>
<SendTo>~/softDownloading.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/DownLoad-(\d+).html</LookFor>
<SendTo>~/softDownloading.aspx?down=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Solution.html</LookFor>
<SendTo>~/SolutionPage.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Solution-(\d+).html</LookFor>
<SendTo>~/SolutionPage.aspx?solu=</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/AuthCode.html</LookFor>
<SendTo>~/SecurityCode.ashx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/DownLoadCount.html</LookFor>
<SendTo>~/DownNumber.ashx </SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings/>
<connectionStrings>
<add name="HXKJNetDataConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\HXKJNetData.mdb;User id=admin;Jet OLEDB:Database Password=hx888888;Persist Security Info=True" providerName="System.Data.OleDb"/>
<add name="MovieConnectionString" connectionString="Data Source=.;Initial Catalog=Movie;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
看來 是沒有人回答了