php - aspx的网站做迁移 虚拟空间迁移到虚拟空间 二级页面出现404报错 大概的解决思路是什么? 或者怎么解决?
黄舟
黄舟 2017-05-16 13:01:28
0
1
648

大家好 小白问下一个网站迁移的问题 是基础运营商的空间迁移 把网站迁移到另一个空间 直接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=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/Products.html?PName=(\D+)</LookFor>
                <SendTo>~/ProductList.aspx?PName=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/ProductIntroduct-(\d+).html</LookFor>
                <SendTo>~/ProductIntro.aspx?ProID=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/SuccessfulCase.html</LookFor>
                <SendTo>~/CaseList.aspx</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/SuccessfulCase-(\d+).html</LookFor>
                <SendTo>~/CaseList.aspx?ID=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/SuccessfulCase-P(\d+).html</LookFor>
                <SendTo>~/CaseList.aspx?page=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/SuccessfulCase-(\d+)-P(\d+).html</LookFor>
                <SendTo>~/CaseList.aspx?ID=$1&amp;page=$2</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/SuccessfulContent-Num(\d+).html</LookFor>
                <SendTo>~/CaseIntro.aspx?ArticID=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/DownLoad.html</LookFor>
                <SendTo>~/softDownloading.aspx</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/DownLoad-(\d+).html</LookFor>
                <SendTo>~/softDownloading.aspx?down=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/Solution.html</LookFor>
                <SendTo>~/SolutionPage.aspx</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/Solution-(\d+).html</LookFor>
                <SendTo>~/SolutionPage.aspx?solu=$1</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>
黄舟
黄舟

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

Antworte allen(1)
淡淡烟草味

看来 是没有人回答了

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage