foxinni
Member
Posted 2 years ago #
Hi,
WooThemes.com is running a normal 2.9 install on the main domain and now a multisite to run all the demos @ http://www.woothemes.com/demo/premiumnews for example.
When posting a comment, the browser brings back a 404 at http://www.woothemes.com/demo/premiumnews/wp-comments-post.php
I expect this to be a .htaccess issue but can't be sure.
Any ideas or solutions?
Foxinni
Hard to say. Any error log messages? Does it do this for logged in users? what about turning the plugins off?
foxinni
Member
Posted 2 years ago #
As I expected it was a .htaccess issue.
I added the following RewriteRule to the (inner) multisite .htaccess: RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-comments-post.*) $2 [L]
Entire file looks like this now:
RewriteEngine On
RewriteBase /demo/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-comments-post.*) $2 [L]
RewriteRule . index.php [L]
I hope this helps anyone and is a valid solution.
Cheers,
Fox
mark.hayden20
Member
Posted 2 years ago #
i am facing the same problem, when a user enter a comments ,after clicking the submit button http://webkotler.com/wp-comments-post.php pages come up.i changed .htaccess which is listed over.disable all plugins,change permalink to default,and uncheck break comments into pages, change theme, rename comment.php etc, plz if you have any other idea,share with us,,,
Regards,
Mark