Welcome Guest, Not a member yet? Register   Sign In
No input file specified.
#1

[eluser]Unknown[/eluser]
Hi

Does it matter if CI is loaded in a folder in root? I have mine at http://smeare dot com/shopper

When I visit my site I get the welcome.php page. But when I try the blog.php in the controller lesson I get the No input file specified.

http://www.smeare dot com/shopper/blog

Here is the code for the blog.php

Code:
<?php
class Blog extends Controller {

    function index()
    {
        echo 'Hello World!';
    }
}
?>

I am using apache and PHP 5.2.5

I also changed the $config['uri_protocol'] to REQUEST_URL

And have the $config['base_url'] set to http://smeare dot com/shopper/


Thanks
#2

[eluser]Tom Schlick[/eluser]
not 100% on this but i think it does matter. i would just throw it in a subdomain if i were you. that always works for me
#3

[eluser]mdowns[/eluser]
What's your index page in config.php? Should be something like:

http://www.smeare dot com/shopper/index.php

Also, check your .htaccess to make sure the rewrites are done properly.
#4

[eluser]Unknown[/eluser]
I checked my index setting in config and changed it to smeare dot com/shopper/index.php

I added this code to an .htaccess file

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

Same result though
#5

[eluser]Peter Ivanov[/eluser]
the same problems here on dreamhost's subdomains

any good news?
#6

[eluser]Peter Ivanov[/eluser]
I found solution that work on me on dreamhost subdomains

read here http://codeigniter.com/wiki/Dreamhost_.htaccess/

here what have worked:

.htaccess
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|public|user_guide|robots\.txt|static)
RewriteRule ^(.*)$ /index.php?/$1 [L]

config.php
Code:
$config['index_page'] = "";

$config['uri_protocol']    = "REQUEST_URI";




Theme © iAndrew 2016 - Forum software by © MyBB