ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

No input file specified and htaccess

September 11, 2007 1:59pm

Subscribe [5]
  • #1 / Sep 11, 2007 1:59pm

    Lobosaurus

    5 posts

    Hi,

    I am getting “No input file specified” error message at my Godaddy hosting (caused by PHP as CGI).

    I tried hack with

    $config['index_page'] = "index.php?";

    and url´s like /index.php?welcome are now OK. Unfortunately I am not able to use it with friendly url´s in .htaccess file. I tried about ten variations and nothing was working. My current .htaccess file looks like:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?$1 [L]

    Has anybody working htaccess file at godaddy?

  • #2 / Sep 11, 2007 2:16pm

    ELRafael

    274 posts

    contact godaddy? sometimes, the server blocks this thing….

    my .htacess

    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt|public)
    RewriteRule ^(.*)$ index.php/$1 [L]
  • #3 / Sep 11, 2007 2:19pm

    Lobosaurus

    5 posts

    I think it won´t work because I need to rewrite url index.php?blablabla and no index.php/blablabla

  • #4 / Sep 11, 2007 3:10pm

    ELRafael

    274 posts

    I think it won´t work because I need to rewrite url index.php?blablabla and no index.php/blablabla

    RewriteRule ^(.*)$ index.php?$1 [L]

    still no working?
    maybe you don’t have permissons to use .htaccess!!! i think that is the problem

  • #5 / Sep 11, 2007 3:34pm

    Lobosaurus

    5 posts

    I am SO STUPID. I used Notepad in Windows Vista for quick editing htaccess and it didn´t rewrite previous file.

    RewriteRule ^(.*)$ index.php?$1 [L] is working

  • #6 / Sep 11, 2007 4:19pm

    ELRafael

    274 posts

    I am SO STUPID. I used Notepad in Windows Vista for quick editing htaccess and it didn´t rewrite previous file.

    RewriteRule ^(.*)$ index.php?$1 [L] is working

    So the problem was between the chair and monitor?  :cheese:

    Hey, try to use GVIM for quick editing files, fast as a punk rock song and easy as a cool beer

    http://www.vim.org/download.php#pc

  • #7 / Sep 18, 2007 1:57pm

    Rich Hauck

    6 posts

    I’ve got a similar problem (Hosting on a FreeBSD server, not GoDaddy) and unfortunately the final solution posted didn’t work for me.
    If I use the following config.php settings:

    $config[‘index_page’] = “index.php?”;
    $config[‘uri_protocol’]  = “QUERY_STRING”;

    I can get pages using site.com/index.php?pagename

    Naturally, I want clean URLs, but if I post an htaccess file using this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?$1 [L]

    This is what I get:
    site.com/pagename—redirects me to the default view.
    site.com/index.php— 404 error
    site.com/index.php/pagename—“No input file specified”
    site.com/index.php?pagename— 404 error

    Any ideas?

  • #8 / Sep 18, 2007 4:32pm

    ELRafael

    274 posts

    I’ve got a similar problem (Hosting on a FreeBSD server, not GoDaddy) and unfortunately the final solution posted didn’t work for me.
    If I use the following config.php settings:

    $config[‘index_page’] = “index.php?”;
    $config[‘uri_protocol’]  = “QUERY_STRING”;

    I can get pages using site.com/index.php?pagename

    Naturally, I want clean URLs, but if I post an htaccess file using this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?$1 [L]

    This is what I get:
    site.com/pagename—redirects me to the default view.
    site.com/index.php— 404 error
    site.com/index.php/pagename—“No input file specified”
    site.com/index.php?pagename— 404 error

    Any ideas?

    Try to remove

    RewriteBase  /
  • #9 / Sep 18, 2007 5:31pm

    Rich Hauck

    6 posts

    No dice. Doing that and trying site.com/pagename returns a 404.

  • #10 / Sep 18, 2007 6:19pm

    ELRafael

    274 posts

    No dice. Doing that and trying site.com/pagename returns a 404.

    this 404 error, is codeigniter or is apache?

  • #11 / Sep 18, 2007 7:40pm

    Rich Hauck

    6 posts

    It’s Apache

  • #12 / Sep 18, 2007 7:48pm

    ELRafael

    274 posts

    It’s Apache

    Hum…

    In my house, works fine fine… In my Webserver, needs some extra configuration!!!

    Please, send me a PM to talk in some messenger!!! If found an answer, put in this thread to future users, ok??

    If you want, sure…

  • #13 / Apr 15, 2010 5:42am

    pranky

    6 posts

    Hello Folks,

    input file not specified:

    I am submitting a link which will explain you what exactly you have to do.

    While doing just remember that your index.php? should contain ? mark

    Check this link

    Thanks
    Pankaj

  • #14 / Mar 20, 2013 11:17am

    hugonorte

    1 posts

    I faced the same problem andI found the solution in this link:

    Fixing No input file specified issue

    Basicly I put the .htaccess in the same directory as my CI project and the .htaccess should look like this:

    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/system.*
    RewriteRule ^(.*)$ index.php?/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ index.php?/$1 [L]

    In the config.php file (in my case ci/application/config/config.php -  Depends of your directory organization)
    you should set:

    $config[‘base_url’]=‘http://www.YOUR_PROJECT_NAME_GOES_HERE.COM/THE_DIRECTORY_OF_YOUR_CI_PROJECT_NAME’;

    $config[‘index_page’] = ‘’;

    and

    $config[‘uri_protocol’] = ‘AUTO’;

    Good Luck for everyone!

  • #15 / Jan 07, 2014 7:43am

    Arvi

    4 posts

    Did not resolve the issue yet for me.
    I need to set/redirect the site as http://www.mysite.com instead of http://www.mysite.com/index.php? in godaddy
    If I type mysite.com it shows blank page, but mysite.com/index.php? loads the website.
    Kindly suggest.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases