Title: Redirect loop
Last modified: August 24, 2016

---

# Redirect loop

 *  Resolved [esdee](https://wordpress.org/support/users/esdee/)
 * (@esdee)
 * [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/)
 * Hi there!
 * I’m trying to make use of this excellent plugin, but during the oauth phase this
   happens:
 * oauth/linkedin/?oauth_status=error&oauth_message=Invalid+state
 * Browser states “too many redirects” This also happens when going directy to sitename.
   com/oauth/linkedin/
 * Not using default permalinks, site runs on nginx and uses SSL
    I’ve full control
   over the machine.
 * Thanks very much for any help.
 * [https://wordpress.org/plugins/wp-linkedin/](https://wordpress.org/plugins/wp-linkedin/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/#post-6177379)
 * did you try to save your permalink settings again? it resets the permalinks table
 *  Thread Starter [esdee](https://wordpress.org/support/users/esdee/)
 * (@esdee)
 * [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/#post-6177385)
 * Hi Claude,
 * I did. For good measure I just switched from one setting to another and back,
   to no avail. These are the relevant settings in my config, although all other
   permalinks seem to work fine.
 *  location / {
    index index.php; try_files $uri $uri/ /index.php;
 *  }
 *  location ~* \.php$ {
    try_files $uri $uri/ / =404;
 * Thanks again.
 *  Plugin Author [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/#post-6177388)
 * you should try to go back to the standard htaccess, see if it comes from there
 *  Thread Starter [esdee](https://wordpress.org/support/users/esdee/)
 * (@esdee)
 * [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/#post-6177390)
 * Nginx doesn’t use .htaccess files. Maybe therein lies the problem?
    I’ll try 
   to run a test on a new, clean site, see if that maybe does work.
 * Regards,
 * Sander Diederik
 *  Thread Starter [esdee](https://wordpress.org/support/users/esdee/)
 * (@esdee)
 * [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/#post-6177506)
 * I’ve tested in a clean wordpress environment. Exact same result. I would presume
   other people use NGINX with your plugin as well, so it might be in my config 
   files. I might test it later in a new environment.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Redirect loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-linkedin_dddbdc.svg)
 * [WP LinkedIn](https://wordpress.org/plugins/wp-linkedin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-linkedin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-linkedin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-linkedin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-linkedin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-linkedin/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 5 replies
 * 2 participants
 * Last reply from: [esdee](https://wordpress.org/support/users/esdee/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/redirect-loop-66/#post-6177506)
 * Status: resolved