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

[eluser]Sara rad[/eluser]
Hi friends ...

when i upload my script script showed this error . i read very topics about this problem and test very ways but just this way work for me :

Htaccess :

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

Config :

Code:
$config['index_page'] = 'index.php?';
$config['uri_protocol']    = 'QUERY_STRING';

And now when user redirect to another page url like that it :

Quote:www.site.com/index.php?/profile/user/../username

or when user click on this link :

Quote:http://site.com/posts/id/1

in url bar url is a :

Quote:http://site.com/index.php?/posts/id/1

can i remove this ? how ?

and image with lowercase don't showed in site , Error pages style and js not loaded .

i need help Big Grin

Regards
#2

[eluser]toopay[/eluser]
Are you try to remove 'index.php' from your uri? then,try this .htaccess
Code:
RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]
your config file now should be :
Code:
$config['index_page'] = "";
$config['uri_protocol']    = "AUTO";
#3

[eluser]Sara rad[/eluser]
i change my htaccess and config to it :-? now first page loaded but when i want go to another page script showed first page !

www.site.com showed home controller
www.site.com/users/ showed home controller
and ... Big Grin Showed home controller
#4

[eluser]toopay[/eluser]
try this config...
Code:
$config['uri_protocol']    = "PATH_INFO";
#5

[eluser]Sara rad[/eluser]
As previously ...
#6

[eluser]toopay[/eluser]
change back uri_protocol to 'AUTO', then try this .htaccess :
Code:
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ index.php/$1 [L]
#7

[eluser]Sara rad[/eluser]
its worked , thank you :X but lowercase images dont showed

file name : Micron.jpg
dont work : www.site.com/micron.jpg
wokrkd : www.site.com/Micron.jpg

i want both of theme Display .

and i have an other problem i say it here :

Quote:http://ellislab.com/forums/viewthread/185771/

Can you help me about this ?

Regards
#8

[eluser]toopay[/eluser]
I believe there are something wrong with your php environment. Can you print out your php environment?
Do this way :
1. Create a view file, and controller to display it, then write this in your view file
Code:
<?php phpinfo(); ?>
2.Access that controller, and save your php information in a file, and upload it somewhere, and post your file url here.
#9

[eluser]toopay[/eluser]
I've receive your private message. Why your image url pointing to http://localhost ? Are you configure your config.php in 'application/config/' properly?
#10

[eluser]InsiteFX[/eluser]
Code:
string strtolower ( string $str )

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB