August 24

0 comments

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

By NickLitten

August 24, 2017

hosting, icdsoft, jetpack, wordpress

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:

Wordpress jetpack error "server unable to connect with my site http 404" 1

 

2 – Now check the .HTACCESS file

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

Wordpress jetpack error "server unable to connect with my site http 404" 2

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:

Wordpress jetpack error "server unable to connect with my site http 404" 3

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

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Join the IBM i Community for FREE Presentations, Lessons, Hints and Tips

>