JetPack can’t connect, 301 redirect
-
Hi I have already asked this on Stack Overflow, but no one seems to be able to answer.
https://stackoverflow.com/questions/56344974/wordpress-xmlrpc-php-301-moved-permanently
I have a site setup on Digital Ocean using their WordPress droplet installer. I have then installed Jetpack.
The Site Health tool reported that Jetpack is not connected and that I should visit the Jetpack.com debugger. I did so and put my website in. The error I get:
XML-RPC is not responding correctly ( 200 )
When visiting the url `mywebaddress.com/xmlrpc.php ` I just get redirected to the main URL of the site.
As recommended by Jetpack I went to a terminal and ran
curl -A ‘Jetpack by WordPress.com’ -d ‘demo.sayHello’ https://mywebaddress.com/xmlrpc.php
When I do so I get the following coming back.
301 Moved Permanently
Moved Permanently
The document has moved here.
Apache/2.4.29 (Ubuntu) Server at mywebaddress.com Port 443If I add the `-L` flag to that curl command, it does not redirect and executes the `demo.sayHello` fine
I have checked the `.htaccess` file and this contains only comments.
I have checked `/etc/apache2/apache2.conf` and can find no redirects there.So my question is, can anyone tell me what might be causing this 301 Redirect?
The blog I need help with is: (visible only to logged in users)
-
-
Ok the blog I need help with is DustyGhost.com.
second is there a way for me to edit the first post? It looks terrible!
-
SOLVED IT!
/etc/apache2/conf-enabled/block-xmlrpc.conf
This file was causing the redirect. Have commented its contents for now. :)
-
Hi dustyghost,
It looks like the Jetpack connection for dustyghost.com is working at the moment. Hopefully that means you’ve been able to get this sorted but if not, the Jetpack support team will be the best people to contact for help with troubleshooting connection issues:
Your site uses WordPress.org software with another host, so the WordPress.org support forums will be the best place to post for general site questions like redirects:
https://wordpress.org/support/forums
Best of luck!
- The topic ‘JetPack can’t connect, 301 redirect’ is closed to new replies.