My Kohana 3 uses the fair $ _GET parameter bit. However, when I deployed the application, I received a blank page with the text "No input file." I quickly found a solution to this seemingly common problem by modifying the .htaccess file:
RewriteRule .* index.php/$0 [PT,L]
to
RewriteRule .* index.php?$0 [PT,L]
However, now my $ _GET array has lost all the parameters passed. Any page that does not require $ _GET works fine. I'm not too good with .htaccess files, but from what can I say by adding? replaced the $ _GET array with uri.
I also tried
RewriteRule .* index.php/?$0 [PT,L]
and
RewriteRule .* index.php?/$0 [PT,L]
but to no avail.
Below is my .htaccess file in its entirety (basically the same as example.htaccess)
# Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase / # Protect hidden files from being viewed <Files .*> Order Deny,Allow Deny From All </Files> # 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]
The closest I found a solution was this post: http://forum.kohanaframework.org/discussion/comment/4857/#Comment_4857 However, this seems like an older version of Kohana, and I'm not sure how this will work in Kohana v3.
source share