DreamHost and CodeIgniter htaccess problem

#1
[eluser]Unknown[/eluser]

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 :

Code:
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:

Code:
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...

#2
[eluser]jprateragg[/eluser]
I'm on DreamHost and my site works fine. Here's my .htaccess:

Code:
RewriteEngine On

# Existing files and directories remain accessible
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.* - [L]

# Redirect the rest
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L]

Are you on a shared server or VPS? I'm on a VPS.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.