Posts

Showing posts from March, 2025

Wordpress "Login with Google": Error 400: redirect_uri_mismatch

Image
If you have a Wordpress web site, like into your business organisation, instead of give each user an username/password for do the login, you can set an Single Sign On login using, for example, Google Workspace. For Wordpress actually there are these two plugin: Login with Google by rtCamp Login with Google Apps by Syed Balkhi They work great! And they are free. Into one website I had a problem with the login. After pressing the "Login with Google" button and selected the account, Google return the error: Error 400: redirect_uri_mismatch After some trouble shooting I found the problem. This website was installed into a sub-folder and the index.php in the root had the classic string for mask the subfolder in the URL. Read the official documentation . For solve this problem you must install the Wordpress files into the root directory! The problem is how Wordpress sub-folder system work. In my case Wordpress was into "www.domain.com/wordpress". I moved all content of th...