﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
  <channel>
    <title>Newest KB Articles in Programming, error messages and sample code</title>
    <description>Recent additions to the knowledge base from DiscountASP.NET</description>
    <link>https://kb.discountasp.net/kb/c345/programming-error-messages-and-sample-code.aspx</link>
    <pubDate>Tue, 09 Jun 2026 06:48:59 GMT</pubDate>
    <generator>SmarterTrack Enterprise 100.0.9553</generator>
    <atom:link href="https://kb.discountasp.net/RSS.ashx?catid=345&amp;type=newestkbarticles" rel="self" type="application/rss+xml" />
    <item>
      <title>Disabling .NET Core in a Sub-Directory</title>
      <link>https://kb.discountasp.net/kb/a1742/disabling-_net-core-in-a-sub-directory.aspx</link>
      <pubDate>Thu, 01 Feb 2024 22:45:20 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1742</guid>
      <description>&lt;div&gt;You can prevent .NET Core (when it's the root application) from intercepting requests in a sub-directory by removing its handler mapping in the sub-directory's web.config file:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;system.web&amp;gt; 
    &amp;lt;trust level="Full" /&amp;gt; 
  &amp;lt;/system.web&amp;gt; 
&amp;lt;system.webServer&amp;gt;
  &amp;lt;handlers&amp;gt;
    &amp;lt;remove name="aspNetCore" /&amp;gt;
  &amp;lt;/handlers&amp;gt;
&amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;div&gt;This is useful in scenarios where you want .NET Core to be the main (i.e. root) application but want to run to another application in a sub-directory (e.g. .NET Framework, PHP, etc.)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Issue with making an encrypted connection to SQL server from your application</title>
      <link>https://kb.discountasp.net/kb/a1727/issue-with-making-an-encrypted-connection-to-sql-server-from-your-application.aspx</link>
      <pubDate>Thu, 30 Mar 2023 23:00:19 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1727</guid>
      <description>&lt;div&gt;&lt;strong&gt;Issue&lt;/strong&gt;&lt;br&gt;Your application returns the following error when connecting to the SQL server with an encrypted connection from your application (Classic ASP, ASP.NET, .NET Core and PHP).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;The certificate chain was issued by an authority that is not trusted.&lt;/pre&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;Cause of Issue&lt;/strong&gt;&lt;br&gt;This error happens because we are using a self-signed certificate on our SQL server for encrypted connection.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;strong&gt;How to Resolve the Issue&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;For Classic ASP / ASP.NET / .NET Core applications&lt;/strong&gt;, update your connection string as follows&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;&amp;quot;Data Source=DBSERVERNAME;Initial Catalog=YOURDBNAME;User ID=YOURUSERID;Password=YOURPASSWORD;Encrypt=yes;&lt;strong&gt;&lt;em&gt;TrustServerCertificate=true&lt;/em&gt;&lt;/strong&gt;&amp;quot;&lt;/pre&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;For PHP applications&lt;/strong&gt;, modify the database connection information as follows&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;$connectionInfo = array( &amp;quot;Database&amp;quot;=&amp;gt;&amp;quot;YOURDBNAME&amp;quot;, &amp;quot;UID&amp;quot;=&amp;gt;&amp;quot;YOURUSERID&amp;quot;, &amp;quot;PWD&amp;quot;=&amp;gt;&amp;quot;YOURPASSWORD&amp;quot;,&amp;quot;Encrypt&amp;quot;=&amp;gt;true,&lt;strong&gt;&lt;em&gt;&amp;quot;TrustServerCertificate&amp;quot;=&amp;gt;true&lt;/em&gt;&lt;/strong&gt;);&lt;/pre&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Finally, &lt;strong&gt;Recycle&amp;nbsp;&lt;/strong&gt;your application pool within the control panel&amp;#39;s Site Tools for the change to take effect.&amp;nbsp;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Response header updates for PCI Compliance</title>
      <link>https://kb.discountasp.net/kb/a1690/response-header-updates-for-pci-compliance.aspx</link>
      <pubDate>Thu, 23 Jun 2022 19:16:17 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1690</guid>
      <description>&lt;div&gt;&lt;strong style='box-sizing: border-box; font-weight: bolder; color: rgb(51, 51, 51); font-family: sans-serif, Arial, Verdana, "Trebuchet MS"; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;'&gt;Server and Scripting Response Headers&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;To meet PCI compliance requirements, four response headers often have to be removed: server, X-Powered-By, and in the case of a .NET (MVC) app, X-AspNet-Version and X-AspNetMvc-Version. &amp;nbsp;The response headers can be viewed in a browser using dev tools like Chrome Developer Tools, the referenced headers being the last four in the screenshot below.&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=161" style="width: 338px;" class="fr-fil fr-dib"&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Removing the headers is fairly straight forward. &amp;nbsp;With all but &lt;span style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;X-AspNetMvc-Version&lt;/span&gt; being removed via web.config update. &amp;nbsp;In the case of &lt;span style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;X-AspNetMvc-Version, it is disabled in a project&amp;#39;s global.asax(.cs) file.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;strong style="font-weight: 700;"&gt;Server&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;If a site is currently on IIS 8, it&amp;#39;s recommended to have the site migrated to IIS 10 / Windows Server 2019 by Support. &amp;nbsp;Where on IIS 10 the server header can be removed via the attribute removeServerHeader&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;system.webServer&amp;gt;
  &amp;lt;security&amp;gt;
    &amp;lt;requestFiltering removeServerHeader=&amp;quot;true&amp;quot; /&amp;gt;
  &amp;lt;/security&amp;gt;
&amp;lt;/system.webServer&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Otherwise on IIS 8 the header response would be removed via the following rewrite rule for RESPONSE_Server. &amp;nbsp;Unlike the attribute above, this method still returns a &amp;quot;Server&amp;quot; header, but the response is blank&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;system.webServer&amp;gt;
  &amp;lt;rewrite&amp;gt;
    &amp;lt;outboundRules&amp;gt;
      &amp;lt;rule name=&amp;quot;Remove RESPONSE_Server&amp;quot; &amp;gt;
        &amp;lt;match serverVariable=&amp;quot;RESPONSE_Server&amp;quot; pattern=&amp;quot;.+&amp;quot; /&amp;gt;
        &amp;lt;action type=&amp;quot;Rewrite&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
      &amp;lt;/rule&amp;gt;
    &amp;lt;/outboundRules&amp;gt;
  &amp;lt;/rewrite&amp;gt;
&amp;lt;/system.webServer&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;strong style="font-weight: 700;"&gt;X-Powered-By&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;The X-Powered-By header is removed via the customHeaders element&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;system.webServer&amp;gt;
  &amp;lt;httpProtocol&amp;gt;
    &amp;lt;customHeaders&amp;gt;
      &amp;lt;remove name=&amp;quot;X-Powered-By&amp;quot; /&amp;gt;
    &amp;lt;/customHeaders&amp;gt;
  &amp;lt;/httpProtocol&amp;gt;
&amp;lt;/system.webServer&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;strong style="font-weight: 700;"&gt;X-AspNet-Version and X-AspNetMvc-Version&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;ASP.NET version is disabled using the enableVersionHeader attribute&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;system.web&amp;gt;
  &amp;lt;httpRuntime enableVersionHeader=&amp;quot;false&amp;quot; /&amp;gt;
&amp;lt;/system.web&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;To remove X-AspNetMvc-Version, &amp;quot;MvcHandler.DisableMvcResponseHeader = true&amp;quot; is added to the Application_Start event of the &lt;span style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;global.asax or global.asax.cs&lt;/span&gt; as in the examples below&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;protected void Application_Start()
{
    MvcHandler.DisableMvcResponseHeader = true;
}&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;or&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;    Sub Application_Start()
        MvcHandler.DisableMvcResponseHeader = True
    End Sub&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;strong style="font-weight: 700;"&gt;Example web.config and response&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;An example web.config removing the server, &lt;span style='margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(51, 51, 51); font-family: sans-serif, Arial, Verdana, "Trebuchet MS"; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;'&gt;X-Powered-By&lt;/span&gt; and &lt;span style='margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(51, 51, 51); font-family: sans-serif, Arial, Verdana, "Trebuchet MS"; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;'&gt;X-AspNet-Version&lt;/span&gt; would look like&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;system.web&amp;gt;
    &amp;lt;httpRuntime enableVersionHeader=&amp;quot;false&amp;quot; /&amp;gt;
  &amp;lt;/system.web&amp;gt;
  &amp;lt;system.webServer&amp;gt;
    &amp;lt;security&amp;gt;
      &amp;lt;requestFiltering removeServerHeader=&amp;quot;true&amp;quot; /&amp;gt;
    &amp;lt;/security&amp;gt;
    &amp;lt;httpProtocol&amp;gt;
      &amp;lt;customHeaders&amp;gt;
        &amp;lt;remove name=&amp;quot;X-Powered-By&amp;quot; /&amp;gt;
      &amp;lt;/customHeaders&amp;gt;
    &amp;lt;/httpProtocol&amp;gt;
  &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Then, along with the project update for MVC, the resulting response header would be&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=162" style="width: 338px;" class="fr-fil fr-dib"&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;strong style="font-weight: 700;"&gt;Additional Response Headers&lt;/strong&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Additional response headers maybe required, for example Content-Security-Policy (&lt;a href="https://content-security-policy.com/" style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(0, 102, 147); text-decoration: none; user-select: auto;"&gt;https://content-security-policy.com/&lt;/a&gt;), to set restrictions on how elements are loaded on the site. &amp;nbsp;Because various headers may be required, a basic syntax example is&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;httpProtocol&amp;gt;
  &amp;lt;customHeaders&amp;gt;
    &amp;lt;add name=&amp;quot;headerName&amp;quot; value=&amp;quot;setting or directive&amp;quot; /&amp;gt;
  &amp;lt;/customHeaders&amp;gt;
&amp;lt;/httpProtocol&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;As an example, and not explicitly a guide, nopCommerce has many of these customHeaders set by default, as seen below&lt;/div&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;br&gt;&lt;/div&gt;&lt;pre style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); padding: 10px; white-space: pre-wrap; color: rgb(89, 89, 89); overflow-wrap: break-word; overflow: visible; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;lt;httpProtocol&amp;gt;
  &amp;lt;customHeaders&amp;gt;
    &amp;lt;add name=&amp;quot;X-XSS-Protection&amp;quot; value=&amp;quot;1; mode=block&amp;quot; /&amp;gt;
    &amp;lt;add name=&amp;quot;X-Frame-Options&amp;quot; value=&amp;quot;SAMEORIGIN&amp;quot; /&amp;gt;
    &amp;lt;add name=&amp;quot;X-Content-Type-Options&amp;quot; value=&amp;quot;nosniff&amp;quot; /&amp;gt;
    &amp;lt;add name=&amp;quot;Strict-Transport-Security&amp;quot; value=&amp;quot;max-age=31536000; includeSubDomains&amp;quot; /&amp;gt;
    &amp;lt;add name=&amp;quot;Content-Security-Policy&amp;quot; value=&amp;quot;default-src &amp;#39;self&amp;#39;; connect-src *; font-src * data:; frame-src *; img-src * data:; media-src *; object-src *; script-src * &amp;#39;unsafe-inline&amp;#39; &amp;#39;unsafe-eval&amp;#39;; style-src * &amp;#39;unsafe-inline&amp;#39;;&amp;quot; /&amp;gt;
    &amp;lt;add name=&amp;quot;Referrer-Policy&amp;quot; value=&amp;quot;same-origin&amp;quot; /&amp;gt;
    &amp;lt;add name=&amp;quot;Permissions-Policy&amp;quot; value=&amp;quot;accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=*, usb=()&amp;quot; /&amp;gt;
  &amp;lt;/customHeaders&amp;gt;
&amp;lt;/httpProtocol&amp;gt;&lt;/pre&gt;&lt;div style="margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; text-size-adjust: none; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Note that setting these customHeaders can have unintended consequences on what elements are being loaded on the site. &amp;nbsp;And extra care and review may be required versus the headers detailed in the first section of the article.&lt;/div&gt;</description>
    </item>
    <item>
      <title>node.js</title>
      <link>https://kb.discountasp.net/kb/a1647/node_js.aspx</link>
      <pubDate>Wed, 02 Oct 2019 22:42:35 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1647</guid>
      <description>&lt;div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;On IIS, node.js is handled by the iisnode module. &amp;nbsp;To run a node.js script, a handler mapping will first have to be added to the site&amp;#39;s web.config to process the .js script, or all .js scripts, using the iisnode module. &amp;nbsp;To run a custom node.js version, see the &lt;strong style="box-sizing: border-box;"&gt;Custom node.js&lt;/strong&gt; &lt;strong style="box-sizing: border-box;"&gt;Version&lt;/strong&gt; section.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;strong style="box-sizing: border-box;"&gt;Handler Mapping&lt;/strong&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;To have all .js scripts handled by the iisnode module, add module&amp;nbsp;&amp;quot;iisnode&amp;quot; to the handlers element of the web.config as in the syntax example below:&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;pre class="prettyprint" style='box-sizing: border-box; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;'&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;system.webServer&amp;gt;
    &amp;lt;handlers&amp;gt;
      &amp;lt;add name=&amp;quot;iisnode&amp;quot; path=&amp;quot;*.js&amp;quot; verb=&amp;quot;*&amp;quot; modules=&amp;quot;iisnode&amp;quot; /&amp;gt;
    &amp;lt;/handlers&amp;gt;
  &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;If there are other files using the .js extension in the application, necessitating targeting specific files, update the handler path. &amp;nbsp;For example, if the below ztest.js file were in the document root, the syntax would be:&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;pre class="prettyprint" style='box-sizing: border-box; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;'&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;system.webServer&amp;gt;
    &amp;lt;handlers&amp;gt;
      &amp;lt;add name=&amp;quot;ztest&amp;quot; path=&amp;quot;ztest.js&amp;quot; verb=&amp;quot;*&amp;quot; modules=&amp;quot;iisnode&amp;quot; /&amp;gt;
    &amp;lt;/handlers&amp;gt;
  &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Note when adding a handler for more than one file, each will require a unique name.&lt;/div&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Testing node.js&lt;/strong&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;To test node.js, the syntax below may be copied, making sure to use the file extension .js. &amp;nbsp;Or &lt;a href="/AvatarHandler.ashx?fid=3238299&amp;key=2711033149"&gt;download and extract ztest.js&lt;/a&gt;;&amp;nbsp;then upload the file to the site and visit the page in a browser.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;pre class="prettyprint" style='box-sizing: border-box; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;'&gt;  var http = require(&amp;#39;http&amp;#39;);

http.createServer(function (req, res) {
  res.writeHead(200, {&amp;#39;Content-Type&amp;#39;: &amp;#39;text/plain&amp;#39;});
  res.end(&amp;#39;Hello world&amp;#39;);
}).listen(process.env.PORT);&lt;/pre&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Custom node.js Version&lt;/strong&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;Visit &lt;a data-fr-linked="true" href="https://nodejs.org/en/download/releases/" id="isPasted"&gt;https://nodejs.org/en/download/releases/&lt;/a&gt; and click the version number link under &amp;quot;Node.js&amp;quot; for the package download.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=468" style="width: 750px;" class="fr-fil fr-dib"&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Then under &amp;quot;Binary Downloads&amp;quot; select the win x64 zip.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=469" style="width: 750px;" class="fr-fil fr-dib"&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;After downloading the zip, extract node.exe.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=470" style="width: 670px;" class="fr-fil fr-dib"&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Then upload the extracted node.exe to an /App_Data directory on the site.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=471" style="width: 502px;" class="fr-fil fr-dib"&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;iisnode.yml&lt;/strong&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Create a new text file and name it &amp;quot;iisnode.yml&amp;quot;. &amp;nbsp;In that file add the following line: &amp;nbsp;nodeProcessCommandLine: &amp;quot;server path to file&amp;quot;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;For the example above where node.exe was placed in /App_Data,&amp;nbsp;the syntax would be:&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;pre class="prettyprint" style='box-sizing: border-box; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;'&gt;nodeProcessCommandLine: &amp;quot;E:\web\username\htdocs\app_data\node.exe&amp;quot;&lt;/pre&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;To test the update, create a separate .js file and add the following syntax to display the version of node.js the site is using:&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;pre class="prettyprint" style='box-sizing: border-box; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;'&gt;var http = require(&amp;#39;http&amp;#39;);
http.createServer(function(req,res) {
  res.writeHead(200, {&amp;#39;Content-Type&amp;#39;: &amp;#39;text/html&amp;#39;});
  res.end(&amp;#39;Node.js &amp;#39; + process.version);
}).listen(process.env.PORT);&lt;/pre&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Or download &lt;a href="/AvatarHandler.ashx?fid=3238305&amp;key=1620950387"&gt;iisnode.zip&lt;/a&gt; for a sample iisnode.yml and test script. &amp;nbsp;Edit iisnode.yml and replace &amp;quot;username&amp;quot; with the username used for logging into the DiscountASP Control Panel, then upload iisnode.yml (and the test script) to the document root.&lt;/div&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;img alt="" height="157" src="/AvatarHandler.ashx?fid=3238302&amp;key=928302708" width="430" class="fr-fic fr-dii"&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;Then viewing the test file through a browser should show the new node.js version.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;img alt="" height="450" src="https://support.everleap.com/AvatarHandler.ashx?fid=3221122&amp;key=4043165981" style="box-sizing: border-box; border: 0px; max-width: 100%; height: auto !important;" width="770" class="fr-fic fr-dii"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Subdirectory and subdomain pointers with URL rewrite</title>
      <link>https://kb.discountasp.net/kb/a1539/subdirectory-and-subdomain-pointers-with-url-rewrite.aspx</link>
      <pubDate>Wed, 01 Aug 2018 22:40:01 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1539</guid>
      <description>&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&lt;span style="font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;To host multiple sites from one site hosting account, and barring conflicting rewrite rules,&amp;nbsp;routing or a site built on the ASP.NET Core Framework, URL rewrite may be used to redirect domains and subdomains to subdirectories on an existing site.&amp;nbsp; Syntax examples can be found below for each type of redirection.&amp;nbsp; The rule(s) would be added to the web.config file in the document root of the site.&amp;nbsp; For Core, see the last section.&lt;/span&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Adding a Domain Pointer&lt;/strong&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;DiscountASP Control Panel &amp;gt; Domain Pointers &amp;gt; Order Domain Pointer&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;For add-on pricing, please review:&amp;nbsp; &lt;a href="https://www.discountasp.net/asp.net-hosting/plan/#add-ons"&gt;https://www.discountasp.net/asp.net-hosting/plan/#add-ons&lt;/a&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Redirecting a domain to a subdirectory&lt;/strong&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;
&lt;pre class="prettyprint" style="box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;"&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;configuration&amp;gt;
 &amp;lt;system.webServer&amp;gt;
  &amp;lt;rewrite&amp;gt;
   &amp;lt;rules&amp;gt;
    &amp;lt;rule name=&amp;quot;domain.com&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;
     &amp;lt;match url=&amp;quot;.*&amp;quot; /&amp;gt;
     &amp;lt;conditions&amp;gt;
      &amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^(www.)?domain.com&amp;quot; /&amp;gt;
      &amp;lt;add input=&amp;quot;{PATH_INFO}&amp;quot; pattern=&amp;quot;^/subdirectory/&amp;quot; negate=&amp;quot;true&amp;quot; /&amp;gt;
     &amp;lt;/conditions&amp;gt;
     &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;\subdirectory\{R:0}&amp;quot; /&amp;gt;
    &amp;lt;/rule&amp;gt;
   &amp;lt;/rules&amp;gt;
  &amp;lt;/rewrite&amp;gt;
 &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;In the above syntax example, &amp;quot;domain.com&amp;quot; on lines 6 and 9 should be replaced by the domain pointer&amp;nbsp;and &amp;quot;subdirectory&amp;quot; on lines 10 and 12 should be replaced by the subdirectory where the files have been uploaded.&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Adding a Subdomain&lt;/strong&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;A wildcard subdomain is added with the SSL and/or subdomain add-on.&amp;nbsp; &lt;span style="font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;For add-on pricing, please review:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.discountasp.net/asp.net-hosting/plan/#add-ons" style="box-sizing: border-box; color: rgb(0, 136, 204); text-decoration-line: none; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;https://www.discountasp.net/asp.net-hosting/plan/#add-ons&lt;/a&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;Redirecting a subdomain to a subdirectory&lt;/strong&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;
&lt;pre class="prettyprint" style="box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; margin-top: 0px; margin-bottom: 20px; line-height: 1.42857; word-break: break-all; border-radius: 4px;"&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;configuration&amp;gt;
 &amp;lt;system.webServer&amp;gt;
  &amp;lt;rewrite&amp;gt;
   &amp;lt;rules&amp;gt;
    &amp;lt;rule name=&amp;quot;subdomain.domain.com&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;
     &amp;lt;match url=&amp;quot;.*&amp;quot; /&amp;gt;
     &amp;lt;conditions&amp;gt;
      &amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^subdomain.domain.com$&amp;quot; /&amp;gt;
      &amp;lt;add input=&amp;quot;{PATH_INFO}&amp;quot; pattern=&amp;quot;^/subdirectory/&amp;quot; negate=&amp;quot;true&amp;quot; /&amp;gt;
     &amp;lt;/conditions&amp;gt;
     &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;\subdirectory\{R:0}&amp;quot; /&amp;gt;
    &amp;lt;/rule&amp;gt;
   &amp;lt;/rules&amp;gt;
  &amp;lt;/rewrite&amp;gt;
 &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;In the above syntax example, &amp;quot;subdomain.domain.com&amp;quot; on lines 6 and 9 should be replaced by the applicable subdomain and &amp;quot;subdirectory&amp;quot; on lines 10 and 12 should be replaced by the subdirectory where the files have been uploaded.&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;If after adding either rule the subdirectory is being appended to the URL, you'll want to verify line 10 in the above syntax has been added to remove it.&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&lt;strong style="box-sizing: border-box;"&gt;ASP.NET Inheritance&lt;/strong&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;Note that if the subdirectory is set as an application starting point and there is an ASP.NET application in the parent directory, the child application will inherit settings from the parent application.&amp;nbsp; For more information about disabling inheritance, see:&amp;nbsp;&amp;nbsp;&lt;a href="https://stackoverflow.com/a/5968658" style="box-sizing: border-box; color: rgb(0, 136, 204); text-decoration-line: none;"&gt;https://stackoverflow.com/a/5968658&lt;/a&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box;"&gt;
&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&lt;strong style="box-sizing: border-box;"&gt;ASP.NET Core&lt;/strong&gt;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/div&gt;

&lt;div style="box-sizing: border-box; font-family: &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"&gt;&lt;a href="https://www.nuget.org/packages/Microsoft.AspNetCore.Rewrite/" style="box-sizing: border-box; color: rgb(0, 136, 204); text-decoration-line: none;"&gt;Microsoft.AspNetCore.Rewrite&lt;/a&gt;&amp;nbsp;is middleware with support for URL rewrite rules.&amp;nbsp; For an overview on using the middleware, see the microsoft.com article&amp;nbsp;&lt;a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-2.1&amp;amp;tabs=aspnetcore2x" style="box-sizing: border-box; color: rgb(0, 136, 204); text-decoration-line: none;"&gt;URL Rewriting Middleware in ASP.NET Core&lt;/a&gt;.&amp;nbsp; To use URL rewrite rules like those above through a referenced xml file, see the&amp;nbsp;&lt;a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-2.1&amp;amp;tabs=aspnetcore2x#iis-url-rewrite-module-rules" style="box-sizing: border-box; color: rgb(0, 136, 204); text-decoration-line: none;"&gt;IIS URL Rewrite Module rules&lt;/a&gt;&amp;nbsp;section.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Checking / Updating Outbound TLS 1.2 Support</title>
      <link>https://kb.discountasp.net/kb/a1520/checking-updating-outbound-tls-1_2-support.aspx</link>
      <pubDate>Wed, 27 Jun 2018 19:24:06 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1520</guid>
      <description>&lt;div&gt;&lt;span style='font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;Due to changes in security, it may be necessary to update or migrate a site to use TLS 1.2 for outbound connections. &amp;nbsp;Most notably for a payment gateway. &amp;nbsp;For general information, including testing, find the applicable scripting section below (ASP.NET, Classic ASP, or PHP). &amp;nbsp;If it&amp;#39;s necessary to migrate the site to a newer version of Windows or you require assistance with reviewing TLS 1.2 support, please &lt;a href="https://support.discountasp.net/Main/frmTickets.aspx"&gt;open a ticket with the Support Department&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;strong style="box-sizing: border-box;"&gt;Windows Server Version&lt;/strong&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;The version of Windows Server, necessary to check for ASP.NET and Classic ASP support, can be ascertained by reviewing the &lt;strong style="box-sizing: border-box;"&gt;Server Name&lt;/strong&gt; in the DiscountASP Control Panel, then matching it against the key below. &amp;nbsp;The &lt;strong style="box-sizing: border-box;"&gt;Server Type&amp;nbsp;&lt;/strong&gt;field in the DiscountASP Control Panel will show whether the site is on Windows Server 2008, 2012, or 2016, but the key below will specify whether it&amp;#39;s on 2008 R2 or 2012 R2.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;img alt="" height="352" src="/AvatarHandler.ashx?fid=2545514&amp;key=155205352" width="630" class="fr-fic fr-dii"&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;strong&gt;Server key&lt;/strong&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;&lt;/div&gt;&lt;table width="374" style="border-collapse:collapse;width:281pt;" id="isPasted" class="fr-table-selection-hover"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="20" class="xl16" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: 0.5pt medium medium 0.5pt; border-style: solid none none solid; border-color: black currentcolor currentcolor black; width: 34.9333%; height: 15pt;"&gt;Windows Version&lt;/td&gt;&lt;td class="xl17" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: 0.5pt 0.5pt medium medium; border-style: solid solid none none; border-color: black black currentcolor currentcolor; width: 64.8%;"&gt;Server Name&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="20" class="xl18" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium medium medium 0.5pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor black; background: rgb(217, 217, 217); height: 15pt; width: 34.9333%;"&gt;Windows 2008&lt;/td&gt;&lt;td class="xl89" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt medium medium; border-style: none solid none none; border-color: currentcolor black currentcolor currentcolor; background: rgb(217, 217, 217); width: 64.8%;"&gt;web701 - web705, web707 - web709&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="20" class="xl20" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium medium medium 0.5pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor black; height: 15pt; width: 34.9333%;"&gt;Windows 2008 R2&lt;/td&gt;&lt;td class="xl90" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt medium medium; border-style: none solid none none; border-color: currentcolor black currentcolor currentcolor; width: 64.8%;"&gt;web710 - web713&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="20" class="xl18" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium medium medium 0.5pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor black; background: rgb(217, 217, 217); height: 15pt; width: 34.9333%;"&gt;Windows 2012&lt;/td&gt;&lt;td class="xl89" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt medium medium; border-style: none solid none none; border-color: currentcolor black currentcolor currentcolor; background: rgb(217, 217, 217); width: 64.8%;"&gt;web801 - web804&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="20" class="xl20" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium medium medium 0.5pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor black; height: 15pt; width: 34.9333%;"&gt;Windows 2012 R2&lt;/td&gt;&lt;td class="xl90" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt medium medium; border-style: none solid none none; border-color: currentcolor black currentcolor currentcolor; width: 64.8%;"&gt;web800, web805 - web808&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="20" class="xl18" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium medium medium 0.5pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor black; background: rgb(217, 217, 217); height: 15pt; width: 34.9333%;"&gt;Windows 2016&lt;/td&gt;&lt;td class="xl89" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt medium medium; border-style: none solid none none; border-color: currentcolor black currentcolor currentcolor; background: rgb(217, 217, 217); width: 64.8%;"&gt;web809 - web810&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="20" class="xl20" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium medium medium 0.5pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor black; height: 15pt; width: 34.9333%;"&gt;Windows 2019&lt;/td&gt;&lt;td class="xl90" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt medium medium; border-style: none solid none none; border-color: currentcolor black currentcolor currentcolor; width: 64.8%;"&gt;web801h, web812&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="41" class="xl30" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: middle; border-image: initial; border-width: medium medium 0.5pt 0.5pt; border-style: none none solid solid; border-color: currentcolor currentcolor black black; background: rgb(217, 217, 217); height: 30.75pt; width: 34.9333%;"&gt;Windows 2022&lt;/td&gt;&lt;td class="xl91" style="color: black; font-size: 15px; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border-image: initial; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: currentcolor black black currentcolor; background: rgb(217, 217, 217); width: 64.8%;"&gt;web802h, web813&lt;br&gt;euweb01, euweb02, euhweb01&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;strong style="box-sizing: border-box;"&gt;ASP.NET&lt;/strong&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;&lt;/div&gt;The requirements for TLS 1.2 support when using ASP.NET are Windows Server 2012 R2 or 2016, ASP.NET Framework 4.5 or higher and bootstrapping code to set the TLS version.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;If a site is hosted on older version of Windows, for migration assistance to Windows 2012 R2 or Windows 2016, please open a ticket with Support.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;If a site is using an ASP.NET Framework older than 4.5 it will need to be updated. Note this is a project update rather than the ASP.NET Framework version set in the DiscountASP Control Panel.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;To set the TLS version for an outbound connection, add the following to the script making the connection or the global.asax:&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12&lt;/pre&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;More information regarding the last update can be found after the link&amp;nbsp;&lt;a data-fr-linked="true" href="https://stackoverflow.com/q/28286086"&gt;https://stackoverflow.com/q/28286086&lt;/a&gt;. &amp;nbsp;Also note that the bootstrapping code would have to be updated if TLS requirements were to change in the future.&lt;br&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;strong style="box-sizing: border-box;"&gt;Classic ASP&lt;/strong&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;For TLS 1.2 support through Classic ASP, the site should be on a&amp;nbsp;Windows 2012 R2 or Windows 2016 server.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;To test TLS 1.2, the script in zssl.zip may be used: &amp;nbsp;&lt;a href="/AvatarHandler.ashx?fid=2547517&amp;key=557637804"&gt;zssl.zip&lt;/a&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;For migration assistance to Windows 2012 R2 or Windows 2016, please open a ticket with Support.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;strong style="box-sizing: border-box;"&gt;PHP / cURL&lt;/strong&gt;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;For PHP, TLS 1.2 support is dependent on the version of PHP set for the site. &amp;nbsp;Which should be set to 5.5 or newer in the DiscountASP Control Panel.&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;DiscountASP Control Panel &amp;gt; IIS Tools &amp;gt; PHP Version (drop-down)&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='box-sizing: border-box; font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;&lt;span style='font-family: "Segoe UI", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; font-size: 14px;'&gt;To test TLS 1.2, the script in zcurl.zip may be used: &amp;nbsp;&lt;a href="/AvatarHandler.ashx?fid=2545537&amp;key=1769069719"&gt;zcurl.zip&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Installed .NET Core Frameworks</title>
      <link>https://kb.discountasp.net/kb/a1499/installed-_net-core-frameworks.aspx</link>
      <pubDate>Wed, 24 Jan 2018 22:12:42 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1499</guid>
      <description>&lt;div&gt;The listed versions of .NET Core support framework-dependent deployment on IIS 8 and IIS 10 web servers.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;1.0&lt;/li&gt;&lt;li&gt;1.1&lt;/li&gt;&lt;li&gt;2.1&lt;/li&gt;&lt;li&gt;2.2&lt;/li&gt;&lt;li&gt;3.0&lt;/li&gt;&lt;li&gt;3.1&lt;/li&gt;&lt;li&gt;5.0&lt;/li&gt;&lt;li&gt;6.0&lt;/li&gt;&lt;li&gt;7.0&lt;/li&gt;&lt;li&gt;8.0&lt;/li&gt;&lt;li&gt;9.0&lt;/li&gt;&lt;li&gt;10.0&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div&gt;If you have been running your Core projects in self-contained mode, changing to framework-dependent often provides some level of performance increase as well as decrease memory usage.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Note Core Version 2.0.x has reached end of life and will be unavailable on newer web servers.&lt;/div&gt;</description>
    </item>
    <item>
      <title>Reinstalling a clean version of WordPress</title>
      <link>https://kb.discountasp.net/kb/a1398/reinstalling-a-clean-version-of-wordpress.aspx</link>
      <pubDate>Thu, 05 Nov 2015 20:04:07 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1398</guid>
      <description>&lt;div&gt;
&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;In this tutorial we will be reinstalling WordPress after it&amp;rsquo;s been compromised or &amp;ldquo;hacked.&amp;rdquo; The tutorial assumes three things: 1) The MySQL database your WordPress site was using wasn&amp;rsquo;t compromised, 2) The WordPress files were the only thing modified, and, 3) You have no other web applications installed in your site&amp;rsquo;s root directory.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Quick overview of the steps we&amp;rsquo;re about to take &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Creating a two different directories locally on your computer.&lt;/span&gt;&lt;/span&gt;

	&lt;ul&gt;
		&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;One containing your hacked WordPress site.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
		&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;The other containing your clean WordPress site.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Before changing anything we will be making a backup of your current WordPress site by downloading it via FTP. &lt;em&gt;Yes, the current compromised WordPress site.&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;a href="https://wordpress.org/download/" target="_blank"&gt;Downloading a clean copy of WordPress&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Re-downloading your themes folder&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Re-downloading your plugins folder&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Copying your web.config and wp-config.php files from the old WordPress site to the root directory of your clean WordPress site&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Restoring your images/upload files&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 1 &amp;ndash; Create two different directories on your computer&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Create two different empty directories on your local computer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_1" class="imgpadtopbottom aligncenter wp-image-11799 size-full" height="146" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_1.png" width="194" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 2 &amp;ndash; Create a backup of your hacked WordPress Site&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;First you will need to establish an FTP connection to your site. Instructions on how to connect to your site via FTP can be found in &lt;a href="https://support.discountasp.net/kb/a311/configuring-filezilla-to-access-your-web-site.aspx" target="_blank"&gt;this knowledge base article.&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Once the FTP connection has been made, navigate to your local directory within FileZilla where you wish to place your backup.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_2" class="imgpadtopbottom aligncenter wp-image-11800 size-full" height="281" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_2.png" width="452" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Highlight all of the files and directories within your WordPress site and right click on Download to copy them to your local environment.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Important:&lt;/strong&gt; We&amp;rsquo;re putting the files here for safe keeping, don&amp;rsquo;t open any of the files unless specified in this article.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 3 &amp;ndash; Download a clean copy of WordPress&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Go to &lt;a href="https://wordpress.org/download/" target="_blank"&gt;WordPress Downloads&lt;/a&gt; and download the zip file.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div&gt;&lt;img alt="CleanHackedWordPress_3" class="imgpadtopbottom aligncenter wp-image-11801 size-full" height="95" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_3.png" width="226" /&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Next you want to extract the clean files to the clean folder directory on your local computer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_4" class="imgpadtopbottom aligncenter wp-image-11802 size-full" height="350" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_4.png" width="357" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 4 &amp;ndash; Re-Download your theme files&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Everyone uses a different theme for their WordPress site, so everyone&amp;rsquo;s case is going to be unique. If you remember where you downloaded your theme then go ahead and download it from the source and and skip to section &lt;strong&gt;Step 4 B&lt;/strong&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 4a. &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;If you are unsure which theme you were using, navigate your &lt;strong&gt;\wp-content\themes &lt;/strong&gt;directory in the hacked backup WordPress files.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;WARNING:&lt;/strong&gt; &lt;em&gt;Don&amp;rsquo;t use the theme from the hacked WordPress site, it&amp;rsquo;s important to download a new copy from the source.&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Within the &lt;strong&gt;\wp-content\themes\ &lt;/strong&gt;directory you will see different directories. You will most likely see some of the default themes that come with WordPress:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li style="text-align: left;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Twentyfifteen&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li style="text-align: left;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Twentyfourteen&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li style="text-align: left;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Twentythirteen&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;But the other themes that are located in the &lt;strong&gt;\wp-content\themes\ &lt;/strong&gt;directory will be the themes you downloaded for your WordPress site before it was compromised.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;In my case I forgot the name of the theme I was using. From the list I see in the &lt;strong&gt;\wp-content\themes\&lt;/strong&gt; directory&lt;strong&gt; &lt;/strong&gt;I can see that I was using the &amp;ldquo;rendition&amp;rdquo; theme.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_5" height="129" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_5.png" width="127" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;My next step was to Google &amp;ldquo;rendition wordpress theme,&amp;rdquo; and I was able to locate the source of the theme.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 4b&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Download and extract the clean theme files into the clean WordPress directory locally on your computer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Once you have downloaded the zip copy of your theme locally on your computer, extract it to a location where you can simply copy and paste the clean theme into the &lt;strong&gt;\wp-content\themes\ &lt;/strong&gt;directory within the clean copy of your WordPress file structure.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 5 Re-download your plugins&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;The plugins folder will be in the &lt;strong&gt;\wp-content\plugins &lt;/strong&gt;directory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;If you don&amp;rsquo;t recall which plugins you had installed, you can always go into the hacked WordPress file structure to see which plugins were installed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div&gt;&lt;img alt="CleanHackedWordPress_6" height="170" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_6.png" width="198" /&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Make a list of the plugins you need to download and download them manually from the &lt;a href="https://wordpress.org/plugins/" target="_blank"&gt;WordPress plugins site.&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Extract the clean plugins you just downloaded into an empty file on your computer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Copy and paste them into the clean copy of the WordPress site&amp;rsquo;s &lt;strong&gt;\wp-content\plugins &lt;/strong&gt;directory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 6 Copy web.config &amp;amp; wp-config.php file &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;We have to copy and paste the old web.config and wp-config.php file into the clean copy of the WordPress site&amp;rsquo;s root directory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;The web.config file contains the URL Rewrite rules for your WordPress permalinks links to work correctly on the IIS server.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;The wp-config.php file contains the settings needed to reestablish a MySQL database connection to the original MySQL database.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Go to the hacked WordPress site root directory where your wp-config.php file is located and open it in a text editor like Notepad. You want to check for malicious code that you don&amp;rsquo;t recognize. Basically, you just want to make sure your old wp-config.php file is clean. You can compare it against the sample wp-config.php file. If you&amp;rsquo;re not sure what it&amp;rsquo;s supposed to look like. You can always check the clean version by checking the &lt;a href="https://github.com/WordPress/WordPress/blob/master/wp-config-sample.php" target="_blank"&gt;Github sample page of the wp-config file&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div&gt;&lt;img alt="CleanHackedWordPress_7" height="166" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_7.png" width="165" /&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Once you have confirmed it&amp;rsquo;s clean, you&amp;rsquo;re going to want to change the password for your MySQL database.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;a href="https://my.discountasp.net/mysql.aspx" target="_blank"&gt;Log into Control Panel&lt;/a&gt; and change the password for your MySQL database within the MySQL Manage section:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Click &lt;strong&gt;Manage&lt;/strong&gt; next to the MySQL database.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Click &lt;strong&gt;Update Password&lt;/strong&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Next you&amp;rsquo;re going to need to update the following line in your wp-config file with the new password.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Look for:&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;define(&amp;lsquo;DB_PASSWORD&amp;lsquo;, &amp;lsquo;OLD_password_here&amp;lsquo;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Replace it with:&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;define(&amp;lsquo;DB_PASSWORD&amp;lsquo;, &amp;lsquo;New_Password_Here&amp;lsquo;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Save the wp-config.php file and place it into the root directory of your clean copy of WordPress.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Next you want to simply copy and paste your old web.config file from the compromised WordPress site to the root of the clean WordPress site. &lt;em&gt;web.config is not a file targeted in the typical WordPress compromise, so it&amp;rsquo;s usually safe to use the old version. You may want to take a look at it in any case, just to make sure it hasn&amp;rsquo;t been altered.&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_8" height="131" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_8.png" width="185" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 7 &amp;ndash; Delete your old WordPress files and upload the clean WordPress site&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Connect to your site via FTP and delete everything from the root of the site.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_9" height="314" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_9.png" width="235" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;You want to make sure you have an empty root since you will be uploading a clean copy of your WordPress site.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Once your root directory is clean go ahead and upload the clean copy of the WordPress site located on your local computer to the root of the site.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Your site should work now. Visit the site to verify that you did everything correctly.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Step 8 &amp;ndash; Restore your old image and upload files&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;The last step is restoring your image files from your old installation of WordPress to your clean WordPress site.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div&gt;&lt;img alt="CleanHackedWordPress_10" height="176" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_10.png" width="246" /&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;First, browse your site to make sure you don&amp;rsquo;t have any missing images. If you do find that some images aren&amp;rsquo;t displaying correctly, you can use &lt;a href="https://developer.chrome.com/devtools" target="_blank"&gt;Google Chrome&amp;rsquo;s Developer tools&lt;/a&gt; to troubleshoot. By using the network tab you can see which images are missing and which directory they need to be uploaded to.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div&gt;&lt;img alt="CleanHackedWordPress_11" height="87" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_11.png" width="181" /&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Once you find the image that is missing in the copy of your hacked WordPress backup, you can upload each image one by one.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img alt="CleanHackedWordPress_12" height="260" src="http://blog.discountasp.net/wp-content/uploads/2015/11/CleanHackedWordPress_12.png" width="342" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;In the image above we can see where our missing image file will need to go into our file directory structure. Simply locate the missing file from your compromised site backup and upload it via FTP to your clean site.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Done!&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;An important next step is to make sure you update any outdated plugins and themes from within your WordPress admin section. You should also &lt;a href="https://codex.wordpress.org/Resetting_Your_Password" target="_blank"&gt;update the password for your WordPress admin user. &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>.htaccess files</title>
      <link>https://kb.discountasp.net/kb/a1386/_htaccess-files.aspx</link>
      <pubDate>Thu, 10 Sep 2015 21:24:42 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1386</guid>
      <description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;An .htaccess file is used to override the web server's global configuration for the directory it is in, and any directories below it. .htaccess files are commonly used for things such as allowing per-directory access control (password protecting), or URL rewriting.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;.htaccess files are only supported on Apache web servers. They are not supported on the Microsoft IIS servers at DiscountASP.NET and Everleap.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;To password protect a folder or file, &lt;a href="http://support.discountasp.net/kb/a398/password-protecting-directories-in-iis.aspx"&gt;check out this knowledge base article&lt;/a&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>405 Method Not Allowed error with PUT or DELETE Request on ASP.Net application</title>
      <link>https://kb.discountasp.net/kb/a1358/405-method-not-allowed-error-with-put-or-delete-request-on-asp_net-application.aspx</link>
      <pubDate>Thu, 16 Apr 2015 22:07:03 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1358</guid>
      <description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;If your application uses .NET WebAPI, you may get a 405 Method Not Allowed error when you issue a PUT or DELETE request.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;This error is caused because &lt;a href="http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-webdav-on-iis"&gt;the WebDAV module intercepted the request&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;To work around the issue, you can insert the following in the web.config file in the root directory of your site: &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;
&lt;pre class="prettyprint"&gt;
&lt;span style="font-size:16px;"&gt;&amp;lt;system.webServer&amp;gt;    
  &amp;lt;modules&amp;gt;        
    &amp;lt;remove name=&amp;quot;WebDAVModule&amp;quot; /&amp;gt;    
  &amp;lt;/modules&amp;gt;    
  &amp;lt;handlers&amp;gt;        
    &amp;lt;remove name=&amp;quot;WebDAV&amp;quot; /&amp;gt;    
  &amp;lt;/handlers&amp;gt;
&amp;lt;/system.webServer&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Note that once you apply this setting, WebDAV will no longer work.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>