I have a CodeIgniter application which is successfully deployed on localhost and justhost without any errors. Now, I need to migrate to DreamHost and place it in the subdirectory: http://mywebsite.com/code_igniter_root/ Now the applications give me the "No input file specified" error with this old htaccess file :
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
When I change to this by adding the question mark after the RewriteRule index.php, it works:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
However, there is a problem that I cannot receive the post data anymore via $_POST and $this->input->post();
What is the solution for this problem? DreamHost is really annoying...