Note that there are some explanatory texts on larger screens.

plurals
  1. PO$_GET array is empty
    text
    copied!<p>My Kohana 3 application makes use of a fair bit of $_GET parameters. However when I deployed the application I got a blank page with just the text "No input file specified". I quickly found the solution to this seemingly common problem by changing in my .htaccess file:</p> <pre><code>RewriteRule .* index.php/$0 [PT,L] </code></pre> <p>to</p> <pre><code>RewriteRule .* index.php?$0 [PT,L] </code></pre> <p>However now my $_GET array has lost all the parameters passed. Any page that doesn't require $_GET is working fine. I'm not too good with .htaccess files, but from what I can tell, adding the ? has replaced the $_GET array with the uri.</p> <p>I've also tried</p> <pre><code>RewriteRule .* index.php/?$0 [PT,L] </code></pre> <p>and</p> <pre><code>RewriteRule .* index.php?/$0 [PT,L] </code></pre> <p>but to no avail.</p> <p>Below is my .htaccess file in full (mostly the same as example.htaccess)</p> <pre><code># Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase / # Protect hidden files from being viewed &lt;Files .*&gt; Order Deny,Allow Deny From All &lt;/Files&gt; # Protect application and system files from being viewed RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [F,L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php?$0 [PT,L] </code></pre> <p>The closest I've found to a solution was this post: <a href="http://forum.kohanaframework.org/discussion/comment/4857/#Comment_4857" rel="nofollow">http://forum.kohanaframework.org/discussion/comment/4857/#Comment_4857</a> However that seems to be for an older version of Kohana, and I'm not sure how this would work in Kohana v3.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload