Welcome Guest, Not a member yet? Register   Sign In
only run index controller when upload to host
#1

[eluser]lamhuy300890[/eluser]
My website run at localhost (use Appserv) is ok.
When i upload to host, it only run the index controller and the view for this controller, i cann't access to another controller.
I have searched many topic for solve this problem, maybe .htaccess file cause this problem.
I have tried many .htaccess file but it doesn't work :

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

=> 404 Page Not Found


Options +FollowSymLinks All -Indexes
RewriteEngine On
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

=> No input file specified.


Sorry for my bad English.
Anyone can help me to solve this problem ?
Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB