Title: G  redirection issues
Last modified: August 22, 2016

---

# G redirection issues

 *  Resolved [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/)
 * I have problem with two sites with G+ login. They are in different hosts. Some
   common for the sites are:
    -Both are placed in subdirectory -same method of G
   + oauth obtain (seen your blog and followed) -Site url for both starts with www-
   Same theme and mostly all plugins are same. Now problems are: 1. Site 1 logs 
   in properly for commenting. But using login meta of wordpress, it logins properly
   but rediects to [http://www.site1.com/subdir](http://www.site1.com/subdir) (means
   page not found).However, login still active and can be logged out. 2. Site 2 
   logs in for commenting, but nothing happens, still loads the same page with the
   G+ button. Using login meta gives same result as site 1, but if browsed the site
   I see no login active.
 * I want to tell you a minor difference in subdirectory name. Site 1 subdirectory
   is a addon domain and path is site1.com/subdir. Site 2 is a subdirectory of a
   root domain with path /subdir.
 * I am totally confused.
    What may be the causes? Is there any server issue like
   php.ini? I somewhere read to put canonical urls in google and I put two combinations
   with only http and http+www. In that case those origin mismatch and other redirect
   issues arises.
 * Can you help me?
 * [https://wordpress.org/plugins/super-socializer/](https://wordpress.org/plugins/super-socializer/)

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

 *  Thread Starter [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191185)
 * I have done an uniformity for the sites in Google+ Oauth.
    For your reference
   site 1 is [http://www.websbaba.com](http://www.websbaba.com) and site 2 is [http://www.appsbaba.com](http://www.appsbaba.com).
 * In google javascript origin and redirect uris set at [http://www.webssbaba.com](http://www.webssbaba.com)
   for site 1
    In google javascript origin and redirect uris set at [http://appsbaba.com](http://appsbaba.com)
   for site 2
 * I have to mention that if I put www for site 2, it does not work for meta log
   in, but with this setup, commenting gives origin mismatch error.
    if I put both
   versions with www and without www, comment redirects to #commentsform, which 
   is 404.
 *  Plugin Author [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191200)
 * Can you share the urls of both the websites so that I can look into the issue?
 *  Thread Starter [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191203)
 * I have already provided above.
    For your reference site 1 is [http://www.websbaba.com](http://www.websbaba.com)
   and site 2 is [http://www.appsbaba.com](http://www.appsbaba.com).
 *  Thread Starter [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191226)
 * I have already provided above.
    For your reference site 1 is [http://www.websbaba.com](http://www.websbaba.com)
   and site 2 is [http://www.appsbaba.com](http://www.appsbaba.com).
 *  Plugin Author [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191276)
 * Hi,
    Please find your answers below:
 * > 1. Site 1 logs in properly for commenting. But using login meta of wordpress,
   > it logins properly but rediects to [http://www.site1.com/subdir](http://www.site1.com/subdir)(
   > means page not found). However, login still active and can be logged out.
 * When you login from the login form of your website, plugin fetches the homepage
   url of your website (which in your case is returning [http://www.websbaba.com/blog/](http://www.websbaba.com/blog/))
   and redirects user to that url. Seems, you have installed this website in ‘blog’
   folder. Technically, your website content should be in “blog” folder and it should
   not return 404 error.
 * > 2. Site 2 logs in for commenting, but nothing happens, still loads the same
   > page with the G+ button. Using login meta gives same result as site 1, but 
   > if browsed the site I see no login active.
 * Set “Javascript Origin” and “Redirect URIs” to [http://appsbaba.com](http://appsbaba.com)
 *  Thread Starter [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191296)
 * Hi,
    1. For your first answer: My website contents are in blog folder and it 
   is installed there. I already mentioned. That is my wordpress url. But my site
   url is [http://www.websbaba.com](http://www.websbaba.com). Means I have changed
   it from wordpress settings. Any option is there in the plugin that will redirect
   to site url and not wordpress url? 2. For second answer too, I mentioned already
   that I set “Javascript Origin” and “Redirect URIs” to [http://appsbaba.com](http://appsbaba.com).
 *  Plugin Author [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191317)
 * To change the redirection for first website, I need to look into the code. Can
   you drop me an email at lordofthechamps[at]gmail[dot]com regarding the same?
   
   In your second website, login page url is starting from [http://appsbaba.com/](http://appsbaba.com/),
   whereas post url is starting from [http://www.appsbaba.com/](http://www.appsbaba.com/).
   That’s why when you login from comment form at any post, it gives you “origin
   mismatch” error.
 *  Thread Starter [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191320)
 * I will mail you. However, I think there is no difference in the problems. What
   you telling about the second website is due to settings in the host. As it is
   a root domain and sites in my host starts without www by default, therefore in
   the setting I could not make it with www. For the first domain, however, I had
   option to name the folder of the add-on domain, which eased me to have a wordpress
   url with www.
    These things are irrelevant, but what I understand, due to high
   flexibility of WP, now it is very difficult to correlate a issue with another
   issue. For a coder, a plugin devs like you, it must be a headache to solve stand
   alone issues now and then!
 *  Plugin Author [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191340)
 * > For a coder, a plugin devs like you, it must be a headache to solve stand alone
   > issues now and then
 * These kinds of issues do not occur that frequently. And then, resolving issues
   is part of a coder’s life 😉
 *  Thread Starter [theputul](https://wordpress.org/support/users/theputul/)
 * (@theputul)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191343)
 * Closed issue. Thanks for replies Rajat.

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

The topic ‘G redirection issues’ is closed to new replies.

 * ![](https://ps.w.org/super-socializer/assets/icon-128x128.png?rev=1866723)
 * [Social Share, Social Login and Social Comments Plugin - Super Socializer](https://wordpress.org/plugins/super-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/super-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-socializer/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [theputul](https://wordpress.org/support/users/theputul/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/g-redirection-issues/#post-5191343)
 * Status: resolved