php - aspx的網站做遷移 虛擬空間遷移到虛擬空間 二級頁面出現404 大概錯誤的解決想法是什麼? 或怎麼解決?
黄舟
黄舟 2017-05-16 13:01:28
0
1
647

大家好小白問下一個網站遷移的問題是基礎運營商的空間遷移把網站遷移到另一個空間直接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=&amp;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>
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

全部回覆(1)
淡淡烟草味

看來 是沒有人回答了

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板