Title: Subsite comments error
Last modified: November 15, 2017

---

# Subsite comments error

 *  [bwolf0137](https://wordpress.org/support/users/bwolf0137/)
 * (@bwolf0137)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/subsite-comments-error/)
 * I have setup WordPress Multisite a couple of times on Windows Server (2012) and
   have all of the rewrite rules in web.config so that they seem to be working correctly.
   However, for the first time I have been asked to allow comments on the subsites
   and although they work correctly on the main site they will not work on the subsites.
   When I click the submit button on a comment I get a 404 error.
 * I can fix the 404 error by editing the line in comments.php from:
    <form action
   =”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id
   =”commentform”>
 * to:
    <form action=”<?php echo network_site_url(); ?>/wp-comments-post.php” method
   =”post” id=”commentform”>
 * But then when I click submit I get, “Sorry, comments are closed for this item.”
   on a resulting page.
 * It would appear that this is caused by some kind of rewrite failure but I can
   not figure out where/why. Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Courtney O’Callaghan](https://wordpress.org/support/users/courtneydawn/)
 * (@courtneydawn)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/subsite-comments-error/#post-9745788)
 * Hi bwolf0137,
    I have a few questions. What version of WordPress are you using?
   What theme are you using? Have you tried using site_url() instead of get_option(‘
   siteurl’) ?
    -  This reply was modified 8 years, 5 months ago by [Courtney O'Callaghan](https://wordpress.org/support/users/courtneydawn/).
 *  Thread Starter [bwolf0137](https://wordpress.org/support/users/bwolf0137/)
 * (@bwolf0137)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/subsite-comments-error/#post-9748292)
 * Hello,
 * I’m using an in-house developed, but very stripped down, theme and do not think
   it has anything connected with this. I am running WordPress on Windows servers
   and realized that two different multi-site sites have the same issue of Commenting
   not working on the subsites. I did find a work around, at least for now, using
   the plugin wpDiscuz. Not exactly sure why but with this activated it does work.
   This plugin works with WordPress’s built-in commenting but it still makes it 
   work. I did not try what you suggested above but will. Thank you, Bryan
 *  Thread Starter [bwolf0137](https://wordpress.org/support/users/bwolf0137/)
 * (@bwolf0137)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/subsite-comments-error/#post-9748343)
 * Just tested and did not solve the problem.
 * Back to drawing board…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Subsite comments error’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 2 participants
 * Last reply from: [bwolf0137](https://wordpress.org/support/users/bwolf0137/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/subsite-comments-error/#post-9748343)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
