title: Google Adwords and CodeIgniter GET Variable Callback URL
body: <p>I am trying to implement Google Adwords with a website that has been developed using CodeIgniter, I believe it requires a "200" status code when they add a GET variable to the URL.</p>
  
  <p>I've been getting emails from Google saying that it's receiving a 404 status code when it goes to my URL. When I try to add ?test=test to the end of my URL it does in fact return a 404:
  <img src="https://i.stack.imgur.com/icPaY.png" alt="enter image description here"></p>
  
  <p>Through my google searches, I have found this useful link:</p>
  
  <p><a href="http://codeigniter.com/forums/viewthread/154153/#746115" rel="nofollow noreferrer">http://codeigniter.com/forums/viewthread/154153/#746115</a></p>
  
  <p>Which states I need to change my config to include these:</p>
  
  <pre><code>$config['uri_protocol']    = "PATH_INFO";
  $config['enable_query_strings'] = TRUE; 
  </code></pre>
  
  <p>Before my uri_protocol was set to "REQUEST_URI". I have tested with ?test=test and it does work! But now all my links are not working, when I switch it to PATH_INFO, what do I need to do to fix my links?</p>
  
  <p>Right now I am using Mod Rewrite to shorten the URLs so that the addresses are like mydomain.com/blog, mydomain.com/about, and my controller just points to the appropriate view. Should I not change my uri_protocol, if so how can I include a GET variable and NOT get a 404?</p>
  
  <p>Any advice would help thank you!</p>
  
  <p>UDPATE: Here's my htaccess file:</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?/$1 [L]
  </code></pre>