Wordpress from subfolder and subdomain on IIS: media return 404htaccess redirect problems, Wordpress and static html site not redirecting properlyWordPress dev in local, subdomain, or subfolderWordpress randomly returning 404Remove subfolder name from url in wordpress as a subdomainWelcome page before WordPress (sub directory install)wordpress media folder with alphabetics subfolders404 when WordPress is in a subfolderConfigure Laravel as Subdirectory of Wordpress on IISMultisite Wordpress, SSL and htaccess to use the subfolder as a rootRunning POST request to php script which sends contact mail from within wordpress subfolder results in 404 Not found

Longest common substring in linear time

Could the E-bike drivetrain wear down till needing replacement after 400 km?

MAXDOP Settings for SQL Server 2014

Can I Retrieve Email Addresses from BCC?

Engineer refusing to file/disclose patents

Indicating multiple different modes of speech (fantasy language or telepathy)

How to color a curve

Have I saved too much for retirement so far?

THT: What is a squared annular “ring”?

Do the concepts of IP address and network interface not belong to the same layer?

Can a significant change in incentives void an employment contract?

How do ground effect vehicles perform turns?

Proof of Lemma: Every nonzero integer can be written as a product of primes

Greatest common substring

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

How should I respond when I lied about my education and the company finds out through background check?

Drawing a topological "handle" with Tikz

Will adding a BY-SA image to a blog post make the entire post BY-SA?

Can I use my Chinese passport to enter China after I acquired another citizenship?

How do I implement a file system driver driver in Linux?

What is the gram­mat­i­cal term for “‑ed” words like these?

Why did the EU agree to delay the Brexit deadline?

Melting point of aspirin, contradicting sources

Why does Async/Await work properly when the loop is inside the async function and not the other way around?



Wordpress from subfolder and subdomain on IIS: media return 404


htaccess redirect problems, Wordpress and static html site not redirecting properlyWordPress dev in local, subdomain, or subfolderWordpress randomly returning 404Remove subfolder name from url in wordpress as a subdomainWelcome page before WordPress (sub directory install)wordpress media folder with alphabetics subfolders404 when WordPress is in a subfolderConfigure Laravel as Subdirectory of Wordpress on IISMultisite Wordpress, SSL and htaccess to use the subfolder as a rootRunning POST request to php script which sends contact mail from within wordpress subfolder results in 404 Not found













0















I am trying to install a secondary Wordpress on a subdomain on a IIS hosting environment. This installation is put in a /domainB/ subfolder of domainA, and the domainB.domainA.com subdomain correctly serves Wordpress from that subfolder, with pretty permalinks and all.



However, media uploaded through the Media library consistently return 404. The file is uploaded correctly and can be accessed through domainA.com/domainB/../file/ but not through domainB.domainA.com. In the backend, certain plugins like UpdraftPlus are unable to load a lot of assets (css, js, all return 404).



The web.config in domainA root has this entry for the root WP installation:



 <match url=".*" />

<conditions logicalGrouping="MatchAll">

<add input="REQUEST_FILENAME" matchType="IsFile" negate="true" />

<add input="REQUEST_FILENAME" matchType="IsDirectory" negate="true" />

</conditions>

<action type="Rewrite" url="index.php" />


Also there is an .htaccess with this rewrite:



RewriteEngine On
RewriteCond %HTTP_HOST ^(domainB).domainA.com$
RewriteCond %PATH_INFO !^/domainB
RewriteRule (.*) /%1/$1 [L]


/domainB/wp-content/ has write permissions set. My guess is there should be extra rules in the web.config, is that correct? And if so, which?










share|improve this question


























    0















    I am trying to install a secondary Wordpress on a subdomain on a IIS hosting environment. This installation is put in a /domainB/ subfolder of domainA, and the domainB.domainA.com subdomain correctly serves Wordpress from that subfolder, with pretty permalinks and all.



    However, media uploaded through the Media library consistently return 404. The file is uploaded correctly and can be accessed through domainA.com/domainB/../file/ but not through domainB.domainA.com. In the backend, certain plugins like UpdraftPlus are unable to load a lot of assets (css, js, all return 404).



    The web.config in domainA root has this entry for the root WP installation:



     <match url=".*" />

    <conditions logicalGrouping="MatchAll">

    <add input="REQUEST_FILENAME" matchType="IsFile" negate="true" />

    <add input="REQUEST_FILENAME" matchType="IsDirectory" negate="true" />

    </conditions>

    <action type="Rewrite" url="index.php" />


    Also there is an .htaccess with this rewrite:



    RewriteEngine On
    RewriteCond %HTTP_HOST ^(domainB).domainA.com$
    RewriteCond %PATH_INFO !^/domainB
    RewriteRule (.*) /%1/$1 [L]


    /domainB/wp-content/ has write permissions set. My guess is there should be extra rules in the web.config, is that correct? And if so, which?










    share|improve this question
























      0












      0








      0








      I am trying to install a secondary Wordpress on a subdomain on a IIS hosting environment. This installation is put in a /domainB/ subfolder of domainA, and the domainB.domainA.com subdomain correctly serves Wordpress from that subfolder, with pretty permalinks and all.



      However, media uploaded through the Media library consistently return 404. The file is uploaded correctly and can be accessed through domainA.com/domainB/../file/ but not through domainB.domainA.com. In the backend, certain plugins like UpdraftPlus are unable to load a lot of assets (css, js, all return 404).



      The web.config in domainA root has this entry for the root WP installation:



       <match url=".*" />

      <conditions logicalGrouping="MatchAll">

      <add input="REQUEST_FILENAME" matchType="IsFile" negate="true" />

      <add input="REQUEST_FILENAME" matchType="IsDirectory" negate="true" />

      </conditions>

      <action type="Rewrite" url="index.php" />


      Also there is an .htaccess with this rewrite:



      RewriteEngine On
      RewriteCond %HTTP_HOST ^(domainB).domainA.com$
      RewriteCond %PATH_INFO !^/domainB
      RewriteRule (.*) /%1/$1 [L]


      /domainB/wp-content/ has write permissions set. My guess is there should be extra rules in the web.config, is that correct? And if so, which?










      share|improve this question














      I am trying to install a secondary Wordpress on a subdomain on a IIS hosting environment. This installation is put in a /domainB/ subfolder of domainA, and the domainB.domainA.com subdomain correctly serves Wordpress from that subfolder, with pretty permalinks and all.



      However, media uploaded through the Media library consistently return 404. The file is uploaded correctly and can be accessed through domainA.com/domainB/../file/ but not through domainB.domainA.com. In the backend, certain plugins like UpdraftPlus are unable to load a lot of assets (css, js, all return 404).



      The web.config in domainA root has this entry for the root WP installation:



       <match url=".*" />

      <conditions logicalGrouping="MatchAll">

      <add input="REQUEST_FILENAME" matchType="IsFile" negate="true" />

      <add input="REQUEST_FILENAME" matchType="IsDirectory" negate="true" />

      </conditions>

      <action type="Rewrite" url="index.php" />


      Also there is an .htaccess with this rewrite:



      RewriteEngine On
      RewriteCond %HTTP_HOST ^(domainB).domainA.com$
      RewriteCond %PATH_INFO !^/domainB
      RewriteRule (.*) /%1/$1 [L]


      /domainB/wp-content/ has write permissions set. My guess is there should be extra rules in the web.config, is that correct? And if so, which?







      wordpress iis






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 9:04









      CasCas

      164




      164






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55039823%2fwordpress-from-subfolder-and-subdomain-on-iis-media-return-404%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55039823%2fwordpress-from-subfolder-and-subdomain-on-iis-media-return-404%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко