Note that there are some explanatory texts on larger screens.

plurals
  1. PO.htaccess issues: No input file specified
    primarykey
    data
    text
    <p>Can someone help me with this? I'm feeling like I've been hitting my head against a wall for over 2 hrs now.</p> <p>I've got <code>Apache 2.2.8 + PHP 5.2.6</code> installed on my machine and the <code>.htaccess</code> with the code below works fine, no errors.</p> <pre><code>RewriteEngine on RewriteCond $1 !^(index\.php|css|gfx|js|swf|robots\.txt|favicon\.ico) RewriteRule ^(.*)$ /index.php/$1 [L] </code></pre> <p>The same code on my hosting provider server gives me a 404 error code and outputs <code>only: No input file specified.</code> index.php is there. I know they have Apache installed (cannot find version info anywhere) and they're running PHP v5.2.8.</p> <p>I'm on <code>Windows XP 64-bit</code>, they're running some <code>Linux</code> with <code>PHP</code> in <code>CGI/FastCGI</code> mode. Can anyone suggest what could be the problem?</p> <p>PS. if that's important that's for <code>CodeIgniter</code> to work with friendly URLs.</p> <hr> <p>Update1:</p> <p><code>mod_rewrite</code> is installed and on.</p> <p>What I've noticed is that if I change in <code>RewriteRule</code> to <code>/index.php?$1</code> (question mark instead of forward slash) it goes into an infinite loop. Anyway, using question mark isn't an option as <code>CodeIgniter</code> (required) is not going to work this way.</p> <p>Homepage also works when I request index.php directly: <code>example.com/index.php</code></p> <p>I'm starting to think it might be apache thinking that once the trailing slash is added it is not a file anymore but a folder. how to change such a behaviour?</p> <hr> <p>Update 2:</p> <p>I was wrong.<br> Apache handles these URLs correctly.<br> Requesting <code>http://example.com/index.php/start/</code> (homepage) or any other valid address works.<br> Seems that <code>Apache</code> is just not forwarding the query for some reason.</p> <hr> <p>Update 3:</p> <p>Just to be clear what I'm trying to achieve.<br> I want to rewrite addresses like that: </p> <blockquote> <p><a href="http://www.example.com/something/" rel="nofollow noreferrer">http://www.example.com/something/</a> => <a href="http://www.example.com/index.php/something/" rel="nofollow noreferrer">http://www.example.com/index.php/something/</a> <a href="http://www.example.com/something/else/" rel="nofollow noreferrer">http://www.example.com/something/else/</a> => <a href="http://www.example.com/index.php/something/else/" rel="nofollow noreferrer">http://www.example.com/index.php/something/else/</a></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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