WordPress Jetpack Error “Server unable to connect with my site http 404”

Authority

Aug 24

Tinkering with one of my wordpress sites I noticed that Jetpack was unable to connect. The WordPress Jetpack Error says “Server unable to connect with my site http 404” which is nicely vague. Luckily, the excellent support guys over at ICDSOFT quickly gave me the solution:

1: Log into the control panel

obviously your control panel might look different but you basically want to find the FILE MANAGER option:

 

2 – Now check the .HTACCESS file

So launch the FILE MANAGER from the Control panel and edit the file:

Make sure you add these lines to the file:

 # BEGIN WordPress JetPack
  <IfModule security2_module>
    SecRuleRemoveById 114
  </IfModule>
 # END WordPress JetPack

and while you are at it – If you are running your website on a secure HTTPS (SSL) and you should be right? Why not add the SSL directive (to make sure you use the HTTPS rather than HTTP) as well the use correct PORT forwarding

# Start Force SSL directives
 RewriteEngine On
 RewriteCond %{HTTPS} !on
 RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# End Force SSL directives

# Begin Force website to correct port
 <IfModule mod_rewrite.c>
  RewriteEngine On 
  RewriteCond %{SERVER_PORT} 80 
  RewriteRule "(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
 </IfModule>
# END Force website to correct port

So it should look something like this:

And thats it – *BOOM* you should be able to disconnect and reconnet to Jetpack.

As well as the added bonus of using a secure SSL encrypted website (obviously if you have not installed a free certificate then ignore the SSL stuff)!

If you are running WORDPRESS or DRUPAL remember to update the master link in the website to using httpS://www.yoursite.com

Follow

About the Author

IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.