No input file specified error
I have this Htaccess file
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]
I am getting No Input File Specified error. I have tried all the earlier suggestions on Stack Overflow like ** RewriteRule ^(.)$ index.php?/$1 [S,L]* etc
please help me
Answers
first check you have mod_rewrite= on (your apache server)
then try:-
Options +FollowSymlinks RewriteEngine on RewriteBase / AddType application/x-httpd-php .asp .py .pl RewriteCond %{REQUEST_URI} !(\.|/$) RewriteRule (.*) http://example.com/$1/ [R=301,L] RewriteRule ^$ index.php [NC,L]