Angular: Web.config: Difference between revisions

From delarco wiki
Jump to navigation Jump to search
(Created page with "<pre><strong><system.webServer></strong> <strong><rewrite></strong> <strong><rules></strong> <strong><rule</strong> name="AngularJS Cond...")
 
mNo edit summary
 
Line 28: Line 28:
     <strong>&lt;/staticContent&gt;</strong>
     <strong>&lt;/staticContent&gt;</strong>
   <strong>&lt;/system.webServer&gt;</strong></pre><div><br></div>
   <strong>&lt;/system.webServer&gt;</strong></pre><div><br></div>
[[Category:Angular]]

Latest revision as of 06:37, 24 September 2021

<strong><system.webServer></strong>
    <strong><rewrite></strong>
      <strong><rules></strong>
        <strong><rule</strong> name="AngularJS Conditions" stopProcessing="true"<strong>></strong>
          <strong><match</strong> url="(^api/|^assets/)" <strong>/></strong>
          <strong><conditions</strong> logicalGrouping="MatchAll" trackAllCaptures="false" <strong>/></strong>
          <strong><action</strong> type="None" <strong>/></strong>
        <strong></rule></strong>
        <strong><rule</strong> name="Angular Routes" stopProcessing="true"<strong>></strong>
          <strong><match</strong> url=".*" <strong>/></strong>
          <strong><conditions</strong> logicalGrouping="MatchAll"<strong>></strong>
            <strong><add</strong> input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" <strong>/></strong>
            <strong><add</strong> input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" <strong>/></strong>
          <strong></conditions></strong>
          <strong><action</strong> type="Rewrite" url="./index.html" <strong>/></strong>
        <strong></rule></strong>
      <strong></rules></strong>
    <strong></rewrite></strong>
    <strong><handlers></strong>
      <strong><remove</strong> name="ExtensionlessUrlHandler-Integrated-4.0" <strong>/></strong>
      <strong><remove</strong> name="OPTIONSVerbHandler" <strong>/></strong>
      <strong><remove</strong> name="TRACEVerbHandler" <strong>/></strong>
      <strong><add</strong> name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" <strong>/></strong>
    <strong></handlers></strong>
    <strong><staticContent></strong>
      <strong><remove</strong> fileExtension=".md" <strong>/></strong>
      <strong><mimeMap</strong> fileExtension=".md" mimeType="text/markdown" <strong>/></strong>
    <strong></staticContent></strong>
  <strong></system.webServer></strong>