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.
- The topic ‘Subsite comments error’ is closed to new replies.