Body: <p>Alright, I know the question is kind of a doozy but I'm running out of options.</p>
  
  <p>I've uploaded my Craft install to the subdirectory <code>website.com/travel</code> and left in the base <code>web.config</code> that comes with Craft:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
           &lt;rewrite&gt;
               &lt;rules&gt;
                  &lt;rule name="Rewrite" stopProcessing="true"&gt;
                      &lt;match url="(.+)" ignoreCase="false" /&gt;
                      &lt;conditions logicalGrouping="MatchAll"&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /&gt;
                          &lt;add input="{URL}" pattern="^/(favicon\.ico|apple-touch-icon.*\.png)$" negate="true" /&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="index.php?p={R:1}" appendQueryString="true" /&gt;
                  &lt;/rule&gt;
               &lt;/rules&gt;
           &lt;/rewrite&gt;
          &lt;urlCompression doStaticCompression="true" doDynamicCompression="true" /&gt;
          &lt;defaultDocument&gt;
              &lt;files&gt;
                  &lt;clear /&gt;
                  &lt;add value="index.php" /&gt;
                  &lt;add value="index.htm" /&gt;
                  &lt;add value="index.html" /&gt;
              &lt;/files&gt;
          &lt;/defaultDocument&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I've also moved the <code>Craft/</code> directory right next to <code>travel/</code>'s <code>index.php</code>.  </p>
  
  <p>Visiting <code>website.com/travel/about</code> takes me to Wordpress' <code>404</code>, however <code>website.com/travel/index.php/about</code> takes me to the correct page.</p>
  
  <p>However, visiting the cp at <code>website.com/travel/index.php/admin</code> removes <code>index.php</code> from the url (but still gives me a Wordpress <code>404</code>).</p>
  
  <p>I've also tried <code>/index.php/</code> and <code>/index.php?p=</code> but both results are the same.</p>
  
  <p>I'm not very well-versed in IIS or web.config settings, so I've just been trying things randomly to no avail. Is there something I am missing?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-02T01:01:01.380Z
Comments.Text: Does Wordpress have its own `web.config` in the parent folder?  `web.config` files are just like `.htaccess` files in that they inherit rules from their parent files.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-02T13:48:37.500Z
Comments.Text: It does, but I also disabled inheritance, so it's not governed by the parent directory.
Comments.UserDisplayName: Rob Erskine
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-03T17:20:49.283Z
Comments.Text: Shot in the blind, but have you tried adding the subdirectory to the rewrite, like `<action type="Rewrite" url="travel/index.php?p={R:1}" appendQueryString="true" />`? Might also try only matching whatever is after `travel` in the url with something like `<match url="^travel/(.+)" ignoreCase="false" />`
Comments.UserDisplayName: megatrond
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-04T23:49:58.160Z
Comments.Text: Thanks for the response @megatrond. It turns out this was a server config issue (not on my end at all). The sys admin did something on the windows and then it started to work. I will try and follow up with my contractor to see if I can get an adequate answer to respond to my original question.
Comments.UserDisplayName: Rob Erskine
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-05T04:11:50.633Z
Comments.Text: Would leave to hear the results, @RobErskine!
Comments.UserDisplayName: Brad Bell
Tags: <windows><subfolder>
Title: Hosting a Craft install in a subfolder of a Wordpress site on Windows IIS
ThreadText: # Hosting a Craft install in a subfolder of a Wordpress site on Windows IIS
  
  (Asked by: username_0 on 2015-10-01)
  
  Alright, I know the question is kind of a doozy but I'm running out of options.
  
  I've uploaded my Craft install to the subdirectory `website.com/travel` and left in the base `web.config` that comes with Craft:
  
  ```
  <?xml version="1.0" encoding="UTF-8"?>
  <configuration>
      <system.webServer>
           <rewrite>
               <rules>
                  <rule name="Rewrite" stopProcessing="true">
                      <match url="(.+)" ignoreCase="false" />
                      <conditions logicalGrouping="MatchAll">
                          <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                          <add input="{URL}" pattern="^/(favicon\.ico|apple-touch-icon.*\.png)$" negate="true" />
                      </conditions>
                      <action type="Rewrite" url="index.php?p={R:1}" appendQueryString="true" />
                  </rule>
               </rules>
           </rewrite>
          <urlCompression doStaticCompression="true" doDynamicCompression="true" />
          <defaultDocument>
              <files>
                  <clear />
                  <add value="index.php" />
                  <add value="index.htm" />
                  <add value="index.html" />
              </files>
          </defaultDocument>
      </system.webServer>
  </configuration>
  
  ```
  
  I've also moved the `Craft/` directory right next to `travel/`'s `index.php`.
  
  Visiting `website.com/travel/about` takes me to Wordpress' `404`, however `website.com/travel/index.php/about` takes me to the correct page.
  
  However, visiting the cp at `website.com/travel/index.php/admin` removes `index.php` from the url (but still gives me a Wordpress `404`).
  
  I've also tried `/index.php/` and `/index.php?p=` but both results are the same.
  
  I'm not very well-versed in IIS or web.config settings, so I've just been trying things randomly to no avail. Is there something I am missing?
  
  **Tags:** windows, subfolder
  
  > **Comments:**
  > **username_1**: Does Wordpress have its own `web.config` in the parent folder?  `web.config` files are just like `.htaccess` files in that they inherit rules from their parent files.  
  > **username_0**: It does, but I also disabled inheritance, so it's not governed by the parent directory.  
  > **username_2**: Shot in the blind, but have you tried adding the subdirectory to the rewrite, like `<action type="Rewrite" url="travel/index.php?p={R:1}" appendQueryString="true" />`? Might also try only matching whatever is after `travel` in the url with something like `<match url="^travel/(.+)" ignoreCase="false" />`  
  > **username_0**: Thanks for the response @username_2. It turns out this was a server config issue (not on my end at all). The sys admin did something on the windows and then it started to work. I will try and follow up with my contractor to see if I can get an adequate answer to respond to my original question.  
  > **username_1**: Would leave to hear the results, @username_0!  
  
  ---
  
  ## 0 answers
  
  