Skip to content

Commit 12b0d42

Browse files
author
Rafael Staib
committed
Add redirect rules for multiple domains pointing to jquery-steps.com
1 parent 2063e2a commit 12b0d42

File tree

3 files changed

+118
-108
lines changed

3 files changed

+118
-108
lines changed

JSteps.v11.suo

5.5 KB
Binary file not shown.

JSteps/JSteps.csproj

+3-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@
179179
<Content Include="Scripts\prettify.js" />
180180
<Content Include="Scripts\social.js" />
181181
<Content Include="Scripts\tracking.js" />
182-
<Content Include="Web.config" />
182+
<Content Include="Web.config">
183+
<SubType>Designer</SubType>
184+
</Content>
183185
<Content Include="Web.Debug.config">
184186
<DependentUpon>Web.config</DependentUpon>
185187
</Content>

JSteps/Web.config

+115-107
Original file line numberDiff line numberDiff line change
@@ -4,123 +4,131 @@
44
http://go.microsoft.com/fwlink/?LinkId=152368
55
-->
66
<configuration>
7-
<configSections>
8-
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
9-
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
10-
</configSections>
11-
<connectionStrings>
12-
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-JSteps-20130810140243;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-JSteps-20130810140243.mdf" />
13-
</connectionStrings>
14-
<appSettings>
15-
<add key="webpages:Version" value="2.0.0.0" />
16-
<add key="webpages:Enabled" value="false" />
17-
<add key="PreserveLoginUrl" value="true" />
18-
<add key="ClientValidationEnabled" value="true" />
19-
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
20-
</appSettings>
21-
<!--
7+
<configSections>
8+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
9+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
10+
</configSections>
11+
<connectionStrings>
12+
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-JSteps-20130810140243;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-JSteps-20130810140243.mdf" />
13+
</connectionStrings>
14+
<appSettings>
15+
<add key="webpages:Version" value="2.0.0.0" />
16+
<add key="webpages:Enabled" value="false" />
17+
<add key="PreserveLoginUrl" value="true" />
18+
<add key="ClientValidationEnabled" value="true" />
19+
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
20+
</appSettings>
21+
<!--
2222
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
2323
2424
The following attributes can be set on the <httpRuntime> tag.
2525
<system.Web>
2626
<httpRuntime targetFramework="4.5" />
2727
</system.Web>
2828
-->
29-
<system.web>
30-
<compilation debug="true" targetFramework="4.5" />
31-
<authentication mode="Forms">
32-
<forms loginUrl="~/Account/Login" timeout="2880" />
33-
</authentication>
34-
<pages controlRenderingCompatibilityVersion="4.0">
35-
<namespaces>
36-
<add namespace="System.Web.Helpers" />
37-
<add namespace="System.Web.Mvc" />
38-
<add namespace="System.Web.Mvc.Ajax" />
39-
<add namespace="System.Web.Mvc.Html" />
40-
<add namespace="System.Web.Optimization" />
41-
<add namespace="System.Web.Routing" />
42-
<add namespace="System.Web.WebPages" />
43-
</namespaces>
44-
</pages>
45-
<profile defaultProvider="DefaultProfileProvider">
46-
<providers>
47-
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
48-
</providers>
49-
</profile>
50-
<membership defaultProvider="DefaultMembershipProvider">
51-
<providers>
52-
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
53-
</providers>
54-
</membership>
55-
<roleManager defaultProvider="DefaultRoleProvider">
56-
<providers>
57-
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
58-
</providers>
59-
</roleManager>
60-
<!--
29+
<system.web>
30+
<compilation debug="true" targetFramework="4.5" />
31+
<authentication mode="Forms">
32+
<forms loginUrl="~/Account/Login" timeout="2880" />
33+
</authentication>
34+
<pages controlRenderingCompatibilityVersion="4.0">
35+
<namespaces>
36+
<add namespace="System.Web.Helpers" />
37+
<add namespace="System.Web.Mvc" />
38+
<add namespace="System.Web.Mvc.Ajax" />
39+
<add namespace="System.Web.Mvc.Html" />
40+
<add namespace="System.Web.Optimization" />
41+
<add namespace="System.Web.Routing" />
42+
<add namespace="System.Web.WebPages" />
43+
</namespaces>
44+
</pages>
45+
<profile defaultProvider="DefaultProfileProvider">
46+
<providers>
47+
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
48+
</providers>
49+
</profile>
50+
<membership defaultProvider="DefaultMembershipProvider">
51+
<providers>
52+
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
53+
</providers>
54+
</membership>
55+
<roleManager defaultProvider="DefaultRoleProvider">
56+
<providers>
57+
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
58+
</providers>
59+
</roleManager>
60+
<!--
6161
If you are deploying to a cloud environment that has multiple web server instances,
6262
you should change session state mode from "InProc" to "Custom". In addition,
6363
change the connection string named "DefaultConnection" to connect to an instance
6464
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
6565
-->
66-
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
67-
<providers>
68-
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
69-
</providers>
70-
</sessionState>
71-
</system.web>
72-
<system.webServer>
73-
<validation validateIntegratedModeConfiguration="false" />
74-
<modules runAllManagedModulesForAllRequests="true" />
75-
<handlers>
76-
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
77-
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
78-
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
79-
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
80-
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
81-
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
82-
</handlers>
83-
<rewrite>
84-
<rules>
85-
<rule name="Images" stopProcessing="true">
86-
<match url="^images/.*$" />
87-
<action type="Rewrite" url="Content/{R:0}" />
88-
</rule>
89-
</rules>
90-
</rewrite>
91-
<!-- For better performance -->
92-
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
93-
<staticContent>
94-
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public"/>
95-
<remove fileExtension=".ico"/>
96-
<mimeMap fileExtension=".ico" mimeType="image/x-icon"/>
97-
</staticContent>
98-
</system.webServer>
99-
<runtime>
100-
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
101-
<dependentAssembly>
102-
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
103-
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
104-
</dependentAssembly>
105-
<dependentAssembly>
106-
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
107-
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
108-
</dependentAssembly>
109-
<dependentAssembly>
110-
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
111-
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
112-
</dependentAssembly>
113-
<dependentAssembly>
114-
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
115-
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
116-
</dependentAssembly>
117-
</assemblyBinding>
118-
</runtime>
119-
<entityFramework>
120-
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
121-
<parameters>
122-
<parameter value="v11.0" />
123-
</parameters>
124-
</defaultConnectionFactory>
125-
</entityFramework>
66+
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
67+
<providers>
68+
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
69+
</providers>
70+
</sessionState>
71+
</system.web>
72+
<system.webServer>
73+
<validation validateIntegratedModeConfiguration="false" />
74+
<modules runAllManagedModulesForAllRequests="true" />
75+
<handlers>
76+
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
77+
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
78+
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
79+
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
80+
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
81+
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
82+
</handlers>
83+
<rewrite>
84+
<rules>
85+
<rule name="Top Level Domain Redirect" stopProcessing="true">
86+
<match url=".*" />
87+
<conditions logicalGrouping="MatchAny">
88+
<add input="{HTTP_HOST}" pattern="^(www\.)?(jquery\-wizard\.com)$" />
89+
<add input="{HTTP_HOST}" pattern="^(www\.)?(boot\-steps\.com)$" />
90+
</conditions>
91+
<action type="Redirect" url="http://www.jquery-steps.com/?utm_source={C:2}&amp;utm_medium=domain&amp;utm_campaign=domain_redirect" appendQueryString="false" />
92+
</rule>
93+
<rule name="Images" stopProcessing="true">
94+
<match url="^images/.*$" />
95+
<action type="Rewrite" url="Content/{R:0}" />
96+
</rule>
97+
</rules>
98+
</rewrite>
99+
<!-- For better performance -->
100+
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
101+
<staticContent>
102+
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public"/>
103+
<remove fileExtension=".ico"/>
104+
<mimeMap fileExtension=".ico" mimeType="image/x-icon"/>
105+
</staticContent>
106+
</system.webServer>
107+
<runtime>
108+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
109+
<dependentAssembly>
110+
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
111+
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
112+
</dependentAssembly>
113+
<dependentAssembly>
114+
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
115+
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
116+
</dependentAssembly>
117+
<dependentAssembly>
118+
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
119+
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
120+
</dependentAssembly>
121+
<dependentAssembly>
122+
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
123+
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
124+
</dependentAssembly>
125+
</assemblyBinding>
126+
</runtime>
127+
<entityFramework>
128+
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
129+
<parameters>
130+
<parameter value="v11.0" />
131+
</parameters>
132+
</defaultConnectionFactory>
133+
</entityFramework>
126134
</configuration>

0 commit comments

Comments
 (0)