title: Question mark in URL for PHP variables makes the link broken. Any idea why?
body: <p>I don't know what changed in the past--this used to work:</p>
  
  <p>Accessing a URL on my server like the following, doesn't work: <a href="http://www.domain.com/folder/file.php?variable=a&amp;variable2=b" rel="nofollow">http://www.domain.com/folder/file.php?variable=a&amp;variable2=b</a></p>
  
  <p>I'm getting a "Not found The requested address 406.shtml was not found on this server." message.</p>
  
  <p>However, if I access this, it works:
  <a href="http://www.domain.com/folder/file.php" rel="nofollow">http://www.domain.com/folder/file.php</a></p>
  
  <p>Adding the question mark after file.php is what makes it break. I have never experienced a problem like this before. At first I thought that .htaccess had something to do with it, but I know as a fact that it hasn't been edited at all in the past.</p>
  
  <p>Any ideas? I'm using CakePHP, but I doubt that has anything to do with it; this has worked before. All suggestions are welcome!</p>
  
  <p>EDIT:
  The /app/webroot .htaccess file has this:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
  
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>As far as I know, this hasn't changed at all, and the URL worked with this. The .htaccess file right under /public_html/ contains this:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
  RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
  &lt;IfModule mod_rewrite.c&gt;
     RewriteEngine on
  
  
     RewriteRule    ^$ app/webroot/    [L]
     RewriteRule    (.*) app/webroot/$1 [L]
  
  
  &lt;/IfModule&gt;
  </code></pre>