admin管理员组文章数量:1291767
I've got a copy of WordPress running that has recently been moved off shared hosting and onto a VPS that I control. While a testing copy of the same site runs correctly on another vhost on the same instance, on the same IP address, after the time when I moved the public site across, the comments form began to redirect visitors back to their own IP address with a 302 Found
in place of the successful 302 Moved Temporarily
.
Running WP 3.4.1, I've tried:
- reinstalling WP from the dashboard, and checked all plugins are up to date
- deactivating all plugins and setting the theme to twenty-eleven
- diffing against the working test installation to check they are the same
- testing from more than one IP, computer and browser
all with no effect to the problem.
What is causing WordPress to redirect from the form submission back to the browser's ip address?
Here's a sample request to leave a comment at :
Request URL:./blog/wp-comments-post.php
Request Method:POST
Status Code:302 Found
Form Data
author:My Name
email:[email protected]
url:(empty)
comment:Comment contents.
akismet_comment_nonce:(akismet nonce)
submit:Post Comment
comment_post_ID:110
comment_post_ID:110
comment_parent:0
bb2_screener_:(bb2 nonce) (my ip address)
Response Headers
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:243
Content-Type:text/html; charset=iso-8859-1
Date:Wed, 01 Aug 2012 17:34:41 GMT
Keep-Alive:timeout=15, max=100
Location:http://(my ip address)/
Server:Apache
Vary:Accept-Encoding
I've got a copy of WordPress running that has recently been moved off shared hosting and onto a VPS that I control. While a testing copy of the same site runs correctly on another vhost on the same instance, on the same IP address, after the time when I moved the public site across, the comments form began to redirect visitors back to their own IP address with a 302 Found
in place of the successful 302 Moved Temporarily
.
Running WP 3.4.1, I've tried:
- reinstalling WP from the dashboard, and checked all plugins are up to date
- deactivating all plugins and setting the theme to twenty-eleven
- diffing against the working test installation to check they are the same
- testing from more than one IP, computer and browser
all with no effect to the problem.
What is causing WordPress to redirect from the form submission back to the browser's ip address?
Here's a sample request to leave a comment at http://def-proc.co.uk/b/jwybj:
Request URL:./blog/wp-comments-post.php
Request Method:POST
Status Code:302 Found
Form Data
author:My Name
email:[email protected]
url:(empty)
comment:Comment contents.
akismet_comment_nonce:(akismet nonce)
submit:Post Comment
comment_post_ID:110
comment_post_ID:110
comment_parent:0
bb2_screener_:(bb2 nonce) (my ip address)
Response Headers
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:243
Content-Type:text/html; charset=iso-8859-1
Date:Wed, 01 Aug 2012 17:34:41 GMT
Keep-Alive:timeout=15, max=100
Location:http://(my ip address)/
Server:Apache
Vary:Accept-Encoding
Share
Improve this question
edited Aug 3, 2012 at 14:10
DefProc
asked Aug 1, 2012 at 21:30
DefProcDefProc
134 bronze badges
2
- whats your .htaccess? – pcarvalho Commented Aug 1, 2012 at 21:58
- …and that's the answer, thank you! I'd got a redirect for wp-comments-post.php that required the referrer to be from the development site's url. Do you want to change your comment to an answer so I can mark it solved? – DefProc Commented Aug 3, 2012 at 14:25
1 Answer
Reset to default 0Check your .htaccess for possible redirects to the old ip address.
i'm filling up the response with text because, honestly there's nothing much to say ;)
reference .htaccess
本文标签: What is causing wpcommentspostphp to redirect to the browser39s IP address
版权声明:本文标题:What is causing wp-comments-post.php to redirect to the browser's IP address? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741539213a2384219.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论