1 Star 0 Fork 32

Meyu / ELightShop

forked from Yokit / ELightShop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
web.config 9.40 KB
一键复制 编辑 原始数据 按行查看 历史
Yokit 提交于 2016-05-16 06:22 . First Commit
<?xml version="1.0"?>
<configuration>
<configSections>
<!-- URL重写配置默认文档不起作用 -->
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/><!-- 1.0.4892.23057 20KB-->
<!-- <section name="CustomConfiguration" type="URLRewriter.Config.UrlsSection, URLRewriter"/> --><!-- 1.0.0.0 8KB-->
</configSections>
<appSettings>
<add key="AppDir" value="/" />
</appSettings>
<connectionStrings>
<add name="DBConnStr" connectionString="Data Source=.;Initial Catalog=sq_offertablets;User ID=sa;Password=123456" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="auto" fileEncoding="utf-8"/>
<pages enableEventValidation="false" enableViewState="false" validateRequest="false">
<controls>
<add tagPrefix="Stencil" src="~/stencil/basistemp.ascx" tagName="BasisTemp"/>
<add tagPrefix="Stencil" src="~/stencil/headtemp.ascx" tagName="HeadTemp"/>
<add tagPrefix="Stencil" src="~/stencil/foottemp.ascx" tagName="FootTemp"/>
<add tagPrefix="Stencil" src="~/account/stencil/lefttemp.ascx" tagName="AccLeftTemp"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<authentication mode="Windows"/>
<customErrors mode="RemoteOnly" defaultRedirect="~/">
<error statusCode="404" redirect="~/errors/404.html" />
</customErrors>
<!-- 1.0.4892.23057 -->
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
<!-- 1.0.0.0 -->
<!-- <httpModules>
<add type="URLRewriter.RewriterModule, URLRewriter" name="RewriterModule"/>
</httpModules> -->
</system.web>
<!--IIS7 Rewrite
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite to Store">
<match url="^store/(.+)-([0-9]+).html$" />
<action type="Rewrite" url="./store/?uid={R:2}" />
</rule>
<rule name="Rewrite to News">
<match url="^news/(.+)-([0-9]+).html$" />
<action type="Rewrite" url="./news/xhtml.aspx?uid={R:2}" />
</rule>
<rule name="Rewrite to Help">
<match url="^help/(.+)-([0-9]+).html$" />
<action type="Rewrite" url="./help/?uid={R:2}" />
</rule>
<rule name="Rewrite to Topics">
<match url="^promotion/$" />
<action type="Rewrite" url="./topics/" />
</rule>
<rule name="Rewrite to Cart">
<match url="^cart/pay.html$" />
<action type="Rewrite" url="./cart/pay.aspx" />
</rule>
<rule name="Rewrite to New-Arrivals">
<match url="^new-arrivals/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1" />
</rule>
<rule name="Rewrite to Tablets-2x">
<match url="^android-tablets-2x/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1-1" />
</rule>
<rule name="Rewrite to Tablets-2.1">
<match url="^android-tablets-2-1/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1-1-1" />
</rule>
<rule name="Rewrite to Tablets-2.2">
<match url="^android-tablets-2-2/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1-1-2" />
</rule>
<rule name="Rewrite to Tablets-2.3">
<match url="^android-tablets-2-3/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1-1-3" />
</rule>
<rule name="Rewrite to Tablets-4x">
<match url="^android-tablets-4x/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1-2" />
</rule>
<rule name="Rewrite to Tablets-4.0">
<match url="^android-tablets-4-0/$" />
<action type="Rewrite" url="./list/default.aspx?cate=1-1-2-1" />
</rule>
<rule name="Rewrite to My-Order-List">
<match url="^account/my-order-list.html$" />
<action type="Rewrite" url="./account/my-order-list.aspx" />
</rule>
<rule name="Rewrite to My-Wish-Lists">
<match url="^account/my-wish-lists.html$" />
<action type="Rewrite" url="./account/my-wish-lists.aspx" />
</rule>
<rule name="Rewrite to My-Profile">
<match url="^account/my-profile.html$" />
<action type="Rewrite" url="./account/my-profile.aspx" />
</rule>
<rule name="Rewrite to Confirm-Email-Address">
<match url="^account/confirm-email-address.html$" />
<action type="Rewrite" url="./account/confirm-email-address.aspx" />
</rule>
<rule name="Rewrite to Email-Subscriptions">
<match url="^account/email-subscriptions.html$" />
<action type="Rewrite" url="./account/email-subscriptions.aspx" />
</rule>
</rules>
</rewrite>
</system.webServer>
-->
<!-- 1.0.0.0 -->
<!--
<CustomConfiguration>
<urls>
<add virtualUrl="~/promotion/default.aspx" destinationUrl="~/topics/default.aspx"/>
<add virtualUrl="~/new-arrivals/default.aspx" destinationUrl="~/list/default.aspx?cate=1-1"/>
<add virtualUrl="~/store/(.+)-([0-9]+).html" destinationUrl="~/store/default.aspx?uid=$2"/>
<add virtualUrl="~/news/(.+)-([0-9]+).html" destinationUrl="~/news/xhtml.aspx?uid=$2"/>
<add virtualUrl="~/help/(.+)-([0-9]+).html" destinationUrl="~/help/default.aspx?uid=$2"/>
<add virtualUrl="~/cart/pay.html" destinationUrl="~/cart/pay.aspx"/>
<add virtualUrl="~/account/my-order-list.html" destinationUrl="~/account/my-order-list.aspx"/>
<add virtualUrl="~/account/my-wish-lists.html" destinationUrl="~/account/my-wish-lists.aspx"/>
<add virtualUrl="~/account/my-profile.html" destinationUrl="~/account/my-profile.aspx"/>
<add virtualUrl="~/account/confirm-email-address.html" destinationUrl="~/account/confirm-email-address.aspx"/>
<add virtualUrl="~/account/email-subscriptions.html" destinationUrl="~/account/email-subscriptions.aspx"/>
</urls>
</CustomConfiguration>
-->
<!-- 1.0.4892.23057 -->
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/store/(.+)-([0-9]+).html</LookFor>
<SendTo>~/store/default.aspx?uid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/news/(.+)-([0-9]+).html</LookFor>
<SendTo>~/news/xhtml.aspx?uid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/help/(.+)-([0-9]+).html</LookFor>
<SendTo>~/help/default.aspx?uid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/cart/pay.html</LookFor>
<SendTo>~/cart/pay.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/promotion/default.aspx</LookFor>
<SendTo>~/topics/default.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/new-arrivals/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/android-tablets-2x/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1-1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/android-tablets-2-1/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1-1-1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/android-tablets-2-2/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1-1-2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/android-tablets-2-3/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1-1-3</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/android-tablets-4x/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1-2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/android-tablets-4-0/default.aspx</LookFor>
<SendTo>~/list/default.aspx?cate=1-1-2-1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/account/my-order-list.html</LookFor>
<SendTo>~/account/my-order-list.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/account/my-wish-lists.html</LookFor>
<SendTo>~/account/my-wish-lists.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/account/my-profile.html</LookFor>
<SendTo>~/account/my-profile.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/account/confirm-email-address.html</LookFor>
<SendTo>~/account/confirm-email-address.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/account/email-subscriptions.html</LookFor>
<SendTo>~/account/email-subscriptions.aspx</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
</configuration>
1
https://gitee.com/meyu/ELightShop.git
git@gitee.com:meyu/ELightShop.git
meyu
ELightShop
ELightShop
master

搜索帮助