title: integrating google login to website with php
body: <p>Please accept my apology if my question has a simple answer. I'm trying to add a functionality to login through google account with <code>PHP</code> and <code>OAuth 2.0</code>. I tried this on a simple login page and its working fine. </p>
  
  <p>Now, I have a page of recipe where user can give their comment. Page URL is something like this <code>mysite.com/recipe-123-recipename</code>. I changed URL through <code>.htaccess</code>. Original link is <code>mysite.com/single_recipe.php?id=123&amp;title=recipename</code>. </p>
  
  <p>There is a option of redirect URL in google API console and it is optional so I left it blank. Every time I try to use script i get redirect URL mismatched error.</p>
  
  <p>I just need to know how can I set redirect URL like <code>single_recipe.php?id=123&amp;title=recipename</code> so user get back to this page? or I need to change the script? I have added facebook login in same page and it is working great.</p>
  
  <p>Please guide me I tried everything but no luck so far.  </p>